mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 719434 - Add notifification/message for when SessionStore purges its state (r=mfinkle)
This commit is contained in:
parent
afcfb958bd
commit
a79da8f74f
@ -224,6 +224,8 @@ var BrowserApp = {
|
||||
Services.obs.addObserver(this, "SearchEngines:Get", false);
|
||||
Services.obs.addObserver(this, "Passwords:Init", false);
|
||||
|
||||
Services.obs.addObserver(this, "sessionstore-state-purge-complete", false);
|
||||
|
||||
function showFullScreenWarning() {
|
||||
NativeWindow.toast.show(Strings.browser.GetStringFromName("alertFullScreenToast"), "short");
|
||||
}
|
||||
@ -992,6 +994,8 @@ var BrowserApp = {
|
||||
storage.init();
|
||||
|
||||
sendMessageToJava({gecko: { type: "Passwords:Init:Return" }});
|
||||
} else if (aTopic == "sessionstore-state-purge-complete") {
|
||||
sendMessageToJava({ gecko: { type: "Session:StatePurged" }});
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -275,6 +275,8 @@ SessionStore.prototype = {
|
||||
// Save the purged state immediately
|
||||
this.saveStateNow();
|
||||
}
|
||||
|
||||
Services.obs.notifyObservers(null, "sessionstore-state-purge-complete", "");
|
||||
break;
|
||||
case "timer-callback":
|
||||
// Timer call back for delayed saving
|
||||
|
Loading…
Reference in New Issue
Block a user