Navigator crashes firefox: can't access property "listening", r is undefined
Author: SoltinatorCreated Sep 30, 2026Updated Sep 30, 2026
Labelsbug
Problem
using navigator in firefox in a particular situation crashes the browser script. i dont know how to debug this issue so it would be nice if you guide me on that too. its flaky. sometimes works but most of the time crashes. it crashes mostly if i hadnt logged in before clicking user redirect page
Steps To Reproduce
Steps to reproduce the behavior:
- fullstack web
- the component below:
#[component]
pub fn UserPanelRedirect() -> Element {
let profile = use_server_future(api::v1::auth::oidc::get_user_profile);
let nav = navigator();
rsx! {
SuspenseBoundary {
// fallback: |suspense_context: SuspenseContext| {
fallback: |_| {
rsx! {
div {
h2{"Redirecting... SUSPENSE CONTEXT"}
}
}
},
div{
match profile {
Ok(val) => {
match val.unwrap(){
Ok(val) => {
let uid = val.sub.unwrap();
nav.replace(Route::UserPanel {uid});
rsx! {
div {
h2{"FINAL Redirecting... VAL IS OK"}
}
}
}
Err(_) => { //not authenticated. redirect to auth
nav.replace("/api/v1/auth?redirect=/user");
rsx! {
div {
h2{"Redirecting... "}
}
}
}
}
}
Err(_) => { //suspended or other issues. just wait
rsx! {
div {
h2{"Redirecting... "}
}
}
}
}
}
}
}
}- restart server
- go to homepage
- click on user page
- get redirected to login
- get redirected to user page
- get redirected to the current user page
- crash happens on browser side
Expected behavior
redirect to Route::UserPanel {uid} without crash.
Environment:
- Dioxus version: dioxus 0.7.10 (57d6794)
- Rust version: cargo 1.96.0 (30a34c682 2026-05-25)
- OS info: Debian GNU/Linux forky/sid (forky) x86_64
- App platform: fullstack web
Extra logs:
- browser
10:06:51.427 Navigated to http://localhost:8080/
10:06:54.147 XHRGET http://localhost:8080/api/v1/auth/current_user_profile [HTTP/1.1 401 Unauthorized 1ms]
10:06:54.182 Navigated to http://localhost:8080/api/v1/auth?redirect=/user
10:07:11.425 Navigated to http://dev.kcl.lab.local/realms/master/login-actions/authenticate?session_code=***
10:07:11.842 This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”. [callback]
10:07:12.031 Navigated to http://localhost:8080/user
10:07:14.687 wasm-bindgen: imported JS function that was not marked as `catch` threw an error: can't access property "listening", r is undefined
Stack:
run@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1:9193
it/__wbg_run_005df3744a5aa7cf/<@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1:48224
s@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:2:826
__wbg_run_005df3744a5aa7cf@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1:48208
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[5953]:0x116869
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[517]:0x5a14b
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[434]:0x44cc5
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[2147]:0xd9698
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[1395]:0xb5077
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[4528]:0x10f5b0
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[3225]:0xf995a
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[4891]:0x1120c2
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[4431]:0x10e66c
Ct@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1:59637
r@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:5:515
VoidFunction*it/__wbg_queueMicrotask_f6a1fa10b81d1fc0/<@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1:46566
s@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:2:826
__wbg_queueMicrotask_f6a1fa10b81d1fc0@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1:46538
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[6098]:0x116dde
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[2652]:0xea534
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[1224]:0xa9acb
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[3152]:0xf7da9
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[967]:0x95209
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[1123]:0xa22d3
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[4091]:0x10a097
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[5378]:0x114afa
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[6113]:0x116e65
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[5541]:0x115471
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[2046]:0xd57e3
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[4201]:0x10b995
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[5494]:0x1151f5
@http://localhost:8080/assets/web_bg-dxh9e131eca4e996a.wasm:wasm-function[6205]:0x117153
ht@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:5:1968
gt@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:5:3634
async*@http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:5:3685
web-dxh9dfb7abd2192aeea.js:5:94
10:07:14.704 Uncaught TypeError: can't access property "listening", r is undefined
run http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1
__wbg_run_005df3744a5aa7cf http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1
s http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:2
__wbg_run_005df3744a5aa7cf http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1
Ct http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1
r http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:5
__wbg_queueMicrotask_f6a1fa10b81d1fc0 http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1
s http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:2
__wbg_queueMicrotask_f6a1fa10b81d1fc0 http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:1
ht http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:5
gt http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:5
async* http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js:5
web-dxh9dfb7abd2192aeea.js:1:9193
10:07:22.341 The resource at “http://localhost:8080/assets/web-dxh9dfb7abd2192aeea.js” preloaded with link preload was not used within a few seconds. Make sure all attributes of the preload tag are set correctly. userSource: DioxusLabs/dioxus