mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
Bug 923854 - Clean up SessionStore.jsm a little; r=smacleod
This commit is contained in:
parent
3b6345d6c5
commit
b659cfdccd
@ -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