fune/browser/components/sessionstore
Mike Conley ae5eef41a2 Bug 1327210 - Make sure we can flip remoteness on a customizemode tab if the user somehow finds a way of navigating away. r=dao
A check for the customizemode attribute was added to SessionStore.restoreTabContent
back when we removed the about:customizing preloading hackery in bug 1014185. This
was added to prevent the extra work of unnecessarily restoring the content for a
tab that was in customize mode (since the content is actually hidden).

However, there are ways for a user to attempt to browse away from customize mode
in the current tab - for example, going to their Home page with Alt-Home. When
we do this in e10s mode, we do a "remoteness flip" to make the hidden about:blank
browser be remote, which causes us to go through the SessionStore machinery to
do the session swap to the new remote browser. The problem is when we hit the
restoreTabContent part - we hit the condition where the customizemode attribute
is set to true, and then we bail out, which means we never finish the swap. We're,
at this point, in a half-restored state that never resolves.

This patch makes it so that in restoreTabContent, if loadArguments is not null (so
we've been given arguments on where to send the browser _next_ on top of its newly
restored history), we don't skip just because the customizemode attribute is set.

MozReview-Commit-ID: HwW7y2EKJvn

--HG--
extra : rebase_source : 73dfebae4f0399905a8146545618e62826817df0
2017-01-10 13:56:15 -05:00
..
content Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00
test Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00
ContentRestore.jsm Bug 1304623 - Create a pref to control the default referrer policy - part 3. r=bkelly 2017-01-05 11:29:56 +08:00
DocShellCapabilities.jsm
FrameTree.jsm
GlobalState.jsm
jar.mn
moz.build Bug 1313397 - Move browser/components/sessionstore/Utils.jsm to toolkit/modules; r=mikedeboer 2016-11-02 10:56:20 -06:00
nsISessionStartup.idl
nsISessionStore.idl
nsSessionStartup.js
nsSessionStore.js
nsSessionStore.manifest Bug 1250603 - update comments blaming WebappRT to blame xpcshell instead; r=gps 2016-04-15 17:17:15 -07:00
PageStyle.jsm
PrivacyFilter.jsm Bug 1276884 - fix nits in PrivacyFilter.jsm and PrivacyLevel.jsm. r=ttaubert 2016-06-01 14:48:15 +02:00
PrivacyLevel.jsm Bug 1276884 - fix nits in PrivacyFilter.jsm and PrivacyLevel.jsm. r=ttaubert 2016-06-01 14:48:15 +02:00
RecentlyClosedTabsAndWindowsMenuUtils.jsm Bug 1313876 - Fixed _undoCloseMiddleClick function call in event listener. r=jaws 2016-10-30 11:29:24 +01:00
RunState.jsm Bug 1276884 - fix nits in RunState.jsm. r=ttaubert 2016-06-01 14:48:16 +02:00
SessionCookies.jsm Bug 1313397 - Move browser/components/sessionstore/Utils.jsm to toolkit/modules; r=mikedeboer 2016-11-02 10:56:20 -06:00
SessionFile.jsm Bug 1251347 - Making sure that SessionFile.write initializes its workers;r=mconley 2016-02-26 12:02:43 +01:00
SessionHistory.jsm Bug 1310771 - Part 3: Add support to SessionStore for recording history for GroupedSHistories, r=mikedeboer 2016-11-18 16:00:43 -05:00
SessionMigration.jsm
SessionSaver.jsm Bug 1306294 - Filters out not worth-saving tabs from session state. r=mikedeboer 2016-12-06 03:30:00 -05:00
SessionStorage.jsm Bug 1329182 - remove trailing newURI null parameters in browser/, r=jaws. 2017-01-09 20:27:25 +01:00
SessionStore.jsm Bug 1327210 - Make sure we can flip remoteness on a customizemode tab if the user somehow finds a way of navigating away. r=dao 2017-01-10 13:56:15 -05:00
SessionWorker.js Bug 1305444 - Move telemetry assignment, remove variable use; r=Yoric 2016-09-24 17:18:21 -07:00
SessionWorker.jsm
StartupPerformance.jsm Bug 1261657 - Don't record SSTabRestored events in StartupPerformance that are the result of a remoteness flip. r=Yoric 2016-04-03 00:30:14 -04:00
TabAttributes.jsm Bug 1294866 - Part 2: Storing the loadingPrincipal used to load favicons in SessionStore. r=mikedeboer 2016-09-13 21:18:37 +08:00
TabState.jsm Bug 1313397 - Move browser/components/sessionstore/Utils.jsm to toolkit/modules; r=mikedeboer 2016-11-02 10:56:20 -06:00
TabStateCache.jsm Bug 1310771 - Part 3: Add support to SessionStore for recording history for GroupedSHistories, r=mikedeboer 2016-11-18 16:00:43 -05:00
TabStateFlusher.jsm