mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 923854 - Clean up SessionStore.jsm a little; r=smacleod
This commit is contained in:
parent
cde7d32b2b
commit
dad00d1f43
@ -352,7 +352,7 @@ let SessionStoreInternal = {
|
||||
|
||||
/* ........ Public Getters .............. */
|
||||
get canRestoreLastSession() {
|
||||
return this._lastSessionState;
|
||||
return !!this._lastSessionState;
|
||||
},
|
||||
|
||||
set canRestoreLastSession(val) {
|
||||
@ -3715,9 +3715,9 @@ let SessionStoreInternal = {
|
||||
* @param aTab the which has been restored
|
||||
*/
|
||||
_sendTabRestoredNotification: function ssi_sendTabRestoredNotification(aTab) {
|
||||
let event = aTab.ownerDocument.createEvent("Events");
|
||||
event.initEvent("SSTabRestored", true, false);
|
||||
aTab.dispatchEvent(event);
|
||||
let event = aTab.ownerDocument.createEvent("Events");
|
||||
event.initEvent("SSTabRestored", true, false);
|
||||
aTab.dispatchEvent(event);
|
||||
},
|
||||
|
||||
/**
|
||||
@ -4248,7 +4248,7 @@ let TabState = {
|
||||
}
|
||||
|
||||
if (disallow.length > 0) {
|
||||
tabData.disallow = disallow.join(",");
|
||||
tabData.disallow = disallow.join(",");
|
||||
}
|
||||
|
||||
// Save text and scroll data.
|
||||
@ -4395,9 +4395,9 @@ let TabState = {
|
||||
if (!options || !options.omitDocShellCapabilities) {
|
||||
let disallow = DocShellCapabilities.collect(browser.docShell);
|
||||
if (disallow.length > 0)
|
||||
tabData.disallow = disallow.join(",");
|
||||
tabData.disallow = disallow.join(",");
|
||||
else if (tabData.disallow)
|
||||
delete tabData.disallow;
|
||||
delete tabData.disallow;
|
||||
}
|
||||
|
||||
// Save tab attributes.
|
||||
@ -4604,5 +4604,3 @@ let TabState = {
|
||||
return "";
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user