BrowsingContext::Close should only set mClosed after sending the DOMWindowClose event
Categories
(Core :: DOM: Core & HTML, task, P3)
Tracking
()
People
(Reporter: peterv, Assigned: u608768)
References
(Blocks 1 open bug)
Details
Attachments
(1 obsolete file)
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Since unload events aren't currently fired for OOP frames, we need to flip
mClosed prior to dispatching DOMWindowClose. We should eventually only call
BC::SetClosed in nsGlobalWindowOuter::FinalClose (after firing DOMWindowClose).
BrowsingContext currently uses mClosed in various locations under the
assumption that it is never actually flipped, so this should not land before
bug 1561899.
Updated•5 years ago
|
This work has exposed some odd window.close
behaviour (particularly with how unload events are fired for cross process iframes), so we plan to hold off work on this until we clear things up.
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Kris might have already done this. Kris, please confirm.
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Does this bug need to block Fission dogfooding (M5)?
Kris might have already done this. Kris, please confirm.
Even if the underlying code bug has been fixed, we need to remove peterv's FIXME comment mentioning this bug #:
Updated•5 years ago
|
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Assigning to kmag to remove FIXME comment linked from comment 4. Tracking for Fission Nightly (M6) because removing the comment doesn't block dogfooding.
Nika wonders whether we will need to set mClosed synchronously without syncing for webcompat. We want to avoid this because this behavior is janky (but matches Chrome's implementation).
(In reply to Chris Peterson [:cpeterson] from comment #5)
Nika wonders whether we will need to set mClosed synchronously without syncing for webcompat. We want to avoid this because this behavior is janky (but matches Chrome's implementation).
We'll probably need this for bug 1620714.
Comment 7•4 years ago
|
||
Reassigning to Kashav because he is working on this.
M6a
We ended up needing to set BrowsingContext::Closed before actually sending DOMWindowClose for bug 1620714.
Description
•