-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
breaking changebugSomething isn't workingSomething isn't workingneeds-decisionNot sure if we want to do this yet, also design work neededNot sure if we want to do this yet, also design work needed
Milestone
Description
Describe the bug
A follow-up from #8482.
The beforeNavigate documentation states that:
"calling cancel will trigger the native browser unload confirmation dialog. In these cases, navigation.willUnload is true."
When linking to an external site, we're told that { ... navigation.willUnload: true }, but the native browser unload confirmation dialog doesn't appear as expected.
Reproduction
https://github.com/oodavid/sveltekit-beforeUnload - reproduction
https://www.loom.com/share/4e3b04fc7def408c9010285e960e0577 - walkthrough video (1m 45s)
Logs
No response
System Info
System:
OS: macOS 12.3.1
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 153.75 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
npm: 8.19.2 - ~/.nvm/versions/node/v16.18.1/bin/npm
Browsers:
Chrome: 109.0.5414.87
Edge: 109.0.1518.52
Firefox: 105.0.1
Safari: 15.4
npmPackages:
@sveltejs/adapter-auto: ^1.0.2 => 1.0.2
@sveltejs/kit: ^1.1.4 => 1.1.4
svelte: ^3.55.1 => 3.55.1
vite: ^4.0.4 => 4.0.4Severity
annoyance
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
breaking changebugSomething isn't workingSomething isn't workingneeds-decisionNot sure if we want to do this yet, also design work neededNot sure if we want to do this yet, also design work needed