gecko-dev/docshell/base
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
..
crashtests Bug 1599662 - Add process switching to the reftest harness so that we can get better coverage for fission. r=kmag 2019-12-04 08:57:11 +00:00
timeline Bug 1589309. Pass XPCOM strings, not buffer pointers, to notifyJSRunToCompletionStart. r=smaug 2019-10-18 02:50:45 +00:00
BaseHistory.cpp Bug 1600362 - Cleanup IntersectionObserver. r=smaug 2019-11-29 20:39:36 +00:00
BaseHistory.h Bug 1593690 - Start visited queries from an idle timer. r=mak,lina 2019-11-06 12:10:59 +00:00
BrowsingContext.cpp Bug 1601423 - Don't send a postMessage IPC message if the source BC has been discarded. r=farre 2019-12-12 13:42:47 +00:00
BrowsingContext.h Bug 1593246 - Part 1: Move SessionStorageManager to BrowsingContext r=dom-workers-and-storage-reviewers,sg,smaug 2019-12-10 12:12:25 +00:00
BrowsingContextFieldList.h Bug 1595800 - Part 1: Move screen orientation attributes from Document to BrowsingContext r=smaug 2019-12-04 00:44:27 +00:00
BrowsingContextGroup.cpp Backed out changeset d3bd59939150 (bug 1601781) for build bustages at BrowsingContextGroup.h. CLOSED TREE 2019-12-06 00:16:31 +02:00
BrowsingContextGroup.h Backed out changeset d3bd59939150 (bug 1601781) for build bustages at BrowsingContextGroup.h. CLOSED TREE 2019-12-06 00:16:31 +02:00
CanonicalBrowsingContext.cpp Bug 1589700 - Record the number of unique site origins across all tabs r=smaug,agi,Dexter 2019-12-05 23:13:24 +00:00
CanonicalBrowsingContext.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
ChildProcessChannelListener.cpp Bug 1603194 - Pass nsDocShellLoadState's load flags to new process when process switching. r=kmag 2019-12-12 02:32:29 +00:00
ChildProcessChannelListener.h Bug 1603194 - Pass nsDocShellLoadState's load flags to new process when process switching. r=kmag 2019-12-12 02:32:29 +00:00
IHistory.h Bug 1591717 - Add a pref to notify of unvisited uris in the history service. r=mak,lina 2019-11-04 13:28:58 +00:00
LoadContext.cpp Bug 1566186: Part 1 - Remove DocShell support for isolated mozbrowsers. r=nika 2019-07-16 16:40:19 -07:00
LoadContext.h Bug 1566186: Part 1 - Remove DocShell support for isolated mozbrowsers. r=nika 2019-07-16 16:40:19 -07:00
SerializedLoadContext.cpp Bug 1542791 - Part 1: Support enabling out-of-process iframes with per-frame granularity, r=mconley 2019-04-17 00:53:22 +00:00
SerializedLoadContext.h Bug 1542791 - Part 1: Support enabling out-of-process iframes with per-frame granularity, r=mconley 2019-04-17 00:53:22 +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
nsAboutRedirector.cpp Bug 1601090, rename .xul files to .xhtml in toolkit/mozapps r=mossop 2019-12-12 16:30:59 +00:00
nsAboutRedirector.h
nsCTooltipTextProvider.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsDSURIContentListener.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsDSURIContentListener.h Bug 1589270 - Part 3: Convert nsExternalHelperApp to use BrowsingContext instead of nsIInterfaceRequestor. r=bzbarsky 2019-11-08 04:35:05 +00:00
nsDefaultURIFixup.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsDefaultURIFixup.h Bug 1586681 - Ensure URIFIxup uses the right engine when there's a separate PB engine. r=Standard8,Gijs 2019-10-12 12:37:51 +00:00
nsDocShell.cpp Bug 1588220: Keep track of last active inner window when BrowsingContext is discarded. r=bzbarsky 2019-12-12 23:11:01 +00:00
nsDocShell.h Bug 1593246 - Part 1: Move SessionStorageManager to BrowsingContext r=dom-workers-and-storage-reviewers,sg,smaug 2019-12-10 12:12:25 +00:00
nsDocShellEditorData.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsDocShellEditorData.h Bug 836176 - Part 3: Remove nsIHTMLDocument; r=farre 2019-06-04 17:27:43 +00:00
nsDocShellEnumerator.cpp Bug 1592599 - Switch nsIDocShell.getDocShellEnumerator() away from using nsISimpleEnumerator; r=bzbarsky 2019-11-18 20:11:58 +00:00
nsDocShellEnumerator.h Bug 1592599 - Switch nsIDocShell.getDocShellEnumerator() away from using nsISimpleEnumerator; r=bzbarsky 2019-11-18 20:11:58 +00:00
nsDocShellLoadState.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsDocShellLoadState.h Bug 1588065 - Fix namespace issues in nsDocShellLoadState.h. r=mattwoodrow 2019-10-13 00:07:50 +00:00
nsDocShellLoadTypes.h Bug 1578624 - P3: Move conversion from LoadURIOptions processing into a static constructor for nsDocShellLoadState. r=kmag 2019-10-11 02:27:03 +00:00
nsDocShellTreeOwner.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsDocShellTreeOwner.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
nsIContentViewer.idl Bug 1523638 - Part 9: Use provided 'WindowGlobalChild' actors to create the initial about:blank document, r=kmag 2019-08-08 16:07:12 +00:00
nsIContentViewerEdit.idl
nsIDocShell.idl Bug 1596958 - Synchronize layouthistorystate to parent process, r=peterv 2019-12-05 20:30:45 +00:00
nsIDocShellTreeItem.idl Bug 1594288 - Remove nsIDocShellTreeItem.findChildWithName. r=annyG 2019-12-12 13:29:39 +00:00
nsIDocShellTreeOwner.idl Bug 1543315 - part 4: Mark ResizeReflow() as MOZ_CAN_RUN_SCRIPT r=smaug 2019-04-13 12:39:47 +00:00
nsIDocumentLoaderFactory.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsILoadContext.idl Bug 1566186: Part 1 - Remove DocShell support for isolated mozbrowsers. r=nika 2019-07-16 16:40:19 -07:00
nsILoadURIDelegate.idl
nsIPrivacyTransitionObserver.idl
nsIReflowObserver.idl
nsIRefreshURI.idl Backed out 4 changesets (bug 1602483, bug 1602090) for causing perma leackchecks CLOSED TREE 2019-12-12 18:37:01 +02:00
nsIScrollObserver.h Bug 1533617 part 4. Mark virtual methods with CAN_RUN_SCRIPT overrides as CAN_RUN_SCRIPT. r=nika 2019-03-11 14:20:29 +00:00
nsIScrollable.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsITooltipListener.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsITooltipTextProvider.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsIURIFixup.idl Bug 1586681 - Ensure URIFIxup uses the right engine when there's a separate PB engine. r=Standard8,Gijs 2019-10-12 12:37:51 +00:00
nsIWebNavigation.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsIWebNavigationInfo.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsIWebPageDescriptor.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsPingListener.cpp Bug 1565767 part 5. Remove some unnecesary refcounting at nsIContent::GetBaseURI callsites. r=peterv 2019-07-15 18:29:05 +00:00
nsPingListener.h Bug 1532318 - Part 2 : update changes of nsIHttpChannel in codebase r=smaug 2019-05-02 12:33:55 +00:00
nsRefreshTimer.cpp
nsRefreshTimer.h
nsWebNavigationInfo.cpp
nsWebNavigationInfo.h