mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 660785 - Respect startup prefs after closing in private browsing mode. [r=zpao]
This commit is contained in:
parent
94a8ad8be3
commit
43696254c8
@ -640,15 +640,16 @@ SessionStoreService.prototype = {
|
||||
let quitting = aSubject.data;
|
||||
if (quitting) {
|
||||
// save the backed up state with session set to stopped,
|
||||
// otherwise resuming next time would look like a crash
|
||||
// otherwise resuming next time would look like a crash.
|
||||
// Whether we restore the session upon resume will be determined by the
|
||||
// usual startup prefs, so we will have the same behavior regardless of
|
||||
// whether the browser was closed while in normal or private browsing mode.
|
||||
if ("_stateBackup" in this) {
|
||||
var oState = this._stateBackup;
|
||||
oState.session = { state: STATE_STOPPED_STR };
|
||||
|
||||
this._saveStateObject(oState);
|
||||
}
|
||||
// make sure to restore the non-private session upon resuming
|
||||
this._prefBranch.setBoolPref("sessionstore.resume_session_once", true);
|
||||
}
|
||||
else
|
||||
this._inPrivateBrowsing = false;
|
||||
|
Loading…
Reference in New Issue
Block a user