gecko-dev/docshell
Kris Maglione e38327a944 Bug 1588220: Keep track of last active inner window when BrowsingContext is discarded. r=bzbarsky
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.

Differential Revision: https://phabricator.services.mozilla.com/D49032

--HG--
extra : moz-landing-system : lando
2019-12-12 23:11:01 +00:00
..
base Bug 1588220: Keep track of last active inner window when BrowsingContext is discarded. r=bzbarsky 2019-12-12 23:11:01 +00:00
build Bug 1599968 - Remove nsIChildProcessChannelListerner interface. r=farre 2019-11-29 15:14:07 +00:00
resources/content Bug 1562642 - add missing license in docshell/resources/content/netError.js r=smaug 2019-11-12 08:26:18 +00:00
shistory Bug 1601773 - Make ReloadCurrentEntry forward to the child process if called from session history in the parent. r=smaug 2019-12-08 21:53:19 +00:00
test Bug 1551276 - Autodetect legacy encodings on unlabeled pages. r=emk 2019-12-12 17:50:19 +00:00
moz.build Bug 1594981 - update Core::DOM* and Core::Storage* bugzilla product and component meta data in moz.build files after reorganization in bug 1594717. r=annevk 2019-11-08 12:17:57 +00:00