You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we queue a task on the target's browsing context event loop, which is being discarded, the task never gets executed, which means the navigation never occurs. Maybe @domenic can clarify if this is correct?
Hmm, I'm not sure that's right. First, note that it's not that the event loop gets discarded; it's that the task is associated with a document, and once that document becomes not-fully-active, any tasks involving it are skipped. (Until the document becomes fully active again, which can happen!)
But during-unloading navigation is prevented by https://html.spec.whatwg.org/#navigate steps 4 and 5. Which is not a model of clear and precise spec text, to be clear; ideally there would be an explicit flag set and unset which could get checked.
For similar reasons we disallow navigations while unloading, we shouldn't allow portals creation/activation while unloading the document.
The text was updated successfully, but these errors were encountered: