Only last active inner window should be reported as current after a BrowsingContext is discarded
Categories
(Core :: DOM: Navigation, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox73 | --- | fixed |
People
(Reporter: kmag, Assigned: kmag)
References
Details
Attachments
(1 file)
After a BrowsingContext is discarded, it drops its reference to its DocShell, and loses track of what its last active inner window was. Since inner windows still sometimes need to behave slightly differently when their BC was discarded while they were still the active inner window vs. when they were not, bug 1583400 works around this by simply checking if an inner window is current relative to its BrowsingContext if its BC has not been discarded, and whether it is current relative to its outer if it has not. This is more correct than always checking relative to its outer, but still incorrect when the outer window was not the active window for the BrowsingContext when it was discarded.
| Assignee | ||
Comment 1•6 years ago
|
||
Any number of outer windows may be attached to a BrowsingContext over its
lifetime. While the BrowsingContext is alive, it's easy to keep track of which
of these is active, and therefore which of its inner windows is active. After
it has been discarded, though, it discards its docShell reference, so all we
can tell about an inner window is whether it is active for its own outer
window, but not whether it should be considered active for its
BrowsingContext.
This patch updates the BrowsingContext detach logic to store a flag on the
current inner window recording that it was active when its BrowsingContext was
detached, and then later checks that flag to determine if it is the current
window for a detached BrowsingContext.
Updated•6 years ago
|
Comment 3•6 years ago
|
||
| bugherder | ||
Comment 4•6 years ago
|
||
Backed out changeset 36a8c8887629 (bug 1588220) for causing a spike in browser chrome failures (eg: Bug 1592741)
Failure logs: https://treeherder.mozilla.org/logviewer.html#?job_id=273802821&repo=autoland
https://treeherder.mozilla.org/logviewer.html#?job_id=273735790&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/0484fd2a471df0bc9711f888081b2b6daaee0301
Comment 5•6 years ago
|
||
Backout merged on 2019-10.-31:
https://hg.mozilla.org/mozilla-central/rev/0484fd2a471d
Comment 6•6 years ago
|
||
| bugherder landing | ||
Comment 7•5 years ago
|
||
Tentatively moving all bugs whose summaries mention "Fission" (or other Fission-related keywords) but are not assigned to a Fission Milestone to the "?" triage milestone.
This will generate a lot of bugmail, so you can filter your bugmail for the following UUID and delete them en masse:
0ee3c76a-bc79-4eb2-8d12-05dc0b68e732
Comment 8•5 years ago
|
||
There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:kmag, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•5 years ago
|
Comment 10•5 years ago
|
||
| bugherder | ||
Description
•