gecko-dev/docshell/base
Olli Pettay b27238627f Bug 1713365, don't try to bfcache if the session history entry already has a frameloader, r=peterv
The crash happens currently when there are more than one loading session history entries at the same time and when
the latter load then accesses current active entry, it has already the bfcached frameloader.

I have tried and failed to write a testcase for this. The Pernosco record is from running
https://searchfox.org/mozilla-central/source/devtools/client/webconsole/test/browser/browser_webconsole_message_categories.js
and the crash has happened when there is a race condition between a load initiated in the parent process and another load initiated in a child
process.

The patch tries to make the setup rather safe. If active entry has changed or it has gotten frameloader, don't try to bfcache.

Differential Revision: https://phabricator.services.mozilla.com/D116410
2021-06-03 20:34:24 +00:00
..
crashtests
timeline
BaseHistory.cpp
BaseHistory.h
BrowsingContext.cpp Bug 1688948 - Only allow BrowsingContext's TouchEventsOverrideInternal to be set from the parent process; r=nika 2021-06-03 19:53:34 +00:00
BrowsingContext.h Bug 1688948 - Only allow BrowsingContext's TouchEventsOverrideInternal to be set from the parent process; r=nika 2021-06-03 19:53:34 +00:00
BrowsingContextGroup.cpp Bug 1535913 - Part 2: Hold a keepalive for extension BCGs in WebExtensionPolicy, r=kmag 2021-05-26 15:25:43 +00:00
BrowsingContextGroup.h Bug 1535913 - Part 2: Hold a keepalive for extension BCGs in WebExtensionPolicy, r=kmag 2021-05-26 15:25:43 +00:00
BrowsingContextWebProgress.cpp Bug 1709346 - Part 1: Track BrowsingContextWebProgress for subframes, r=mattwoodrow,kmag,necko-reviewers 2021-06-03 16:59:32 +00:00
BrowsingContextWebProgress.h Bug 1709346 - Part 1: Track BrowsingContextWebProgress for subframes, r=mattwoodrow,kmag,necko-reviewers 2021-06-03 16:59:32 +00:00
CanonicalBrowsingContext.cpp Bug 1713365, don't try to bfcache if the session history entry already has a frameloader, r=peterv 2021-06-03 20:34:24 +00:00
CanonicalBrowsingContext.h Bug 1713365, don't try to bfcache if the session history entry already has a frameloader, r=peterv 2021-06-03 20:34:24 +00:00
ChildProcessChannelListener.cpp
ChildProcessChannelListener.h
IHistory.h
LoadContext.cpp
LoadContext.h
SerializedLoadContext.cpp
SerializedLoadContext.h
SyncedContext.h
SyncedContextInlines.h
URIFixup.jsm Bug 1708125 - Remove some remaining FTP references from the tree r=necko-reviewers,dragana,Gijs 2021-05-31 13:08:12 +00:00
WindowContext.cpp
WindowContext.h
moz.build
nsAboutRedirector.cpp Bug 1695817 - Part 2: Introduce a blank page about:third-party r=Gijs,fluent-reviewers,xpcom-reviewers,kmag 2021-05-28 22:35:57 +00:00
nsAboutRedirector.h
nsCTooltipTextProvider.h
nsDSURIContentListener.cpp Bug 1711090 - Part 3: Add some missing nsITimerCallback queryinterface targets, r=KrisWright,necko-reviewers,kershaw 2021-05-18 20:45:17 +00:00
nsDSURIContentListener.h
nsDocShell.cpp Bug 1706615 - Part 8: Preserve the unstripped URI when doing a reload. r=smaug 2021-06-02 19:46:22 +00:00
nsDocShell.h Bug 1696175 - Call DisconnectChildListeners at a later time for BFCache in the parent. r=necko-reviewers,nika 2021-05-13 15:38:01 +00:00
nsDocShellEditorData.cpp
nsDocShellEditorData.h
nsDocShellEnumerator.cpp
nsDocShellEnumerator.h
nsDocShellLoadState.cpp Bug 1706615 - Part 8: Preserve the unstripped URI when doing a reload. r=smaug 2021-06-02 19:46:22 +00:00
nsDocShellLoadState.h Bug 1706615 - Part 8: Preserve the unstripped URI when doing a reload. r=smaug 2021-06-02 19:46:22 +00:00
nsDocShellLoadTypes.h
nsDocShellTelemetryUtils.cpp
nsDocShellTelemetryUtils.h
nsDocShellTreeOwner.cpp Bug 1706316 - Part 2: Remove nsIBaseWindow::setFocus; r=hsivonen 2021-05-10 20:05:12 +00:00
nsDocShellTreeOwner.h
nsIContentViewer.idl Bug 829543 - Rename hintCharset to reloadEncoding and remove unnecessary code. r=emk 2021-04-28 12:15:47 +00:00
nsIContentViewerEdit.idl
nsIDocShell.idl
nsIDocShellTreeItem.idl
nsIDocShellTreeOwner.idl
nsIDocumentLoaderFactory.idl
nsILoadContext.idl
nsILoadURIDelegate.idl
nsIPrivacyTransitionObserver.idl
nsIReflowObserver.idl
nsIRefreshURI.idl
nsIScrollObserver.h
nsITooltipListener.idl
nsITooltipTextProvider.idl
nsIURIFixup.idl
nsIWebNavigation.idl Bug 1708150 - Add user activation flag to reload, goBack and goForward r=ckerschb,Gijs,smaug 2021-04-28 11:26:49 +00:00
nsIWebNavigationInfo.idl
nsIWebPageDescriptor.idl
nsPingListener.cpp
nsPingListener.h
nsRefreshTimer.cpp
nsRefreshTimer.h
nsWebNavigationInfo.cpp
nsWebNavigationInfo.h