Compare commits
20
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
775e800ca0 | ||
|
|
882aaf5b1f | ||
|
|
8ee235ca5d | ||
|
|
cc54bbe952 | ||
|
|
73b202b1e5 | ||
|
|
21042963de | ||
|
|
d443656df5 | ||
|
|
29a8db7280 | ||
|
|
daa52eef9a | ||
|
|
95ce1f0d63 | ||
|
|
4dadef2740 | ||
|
|
b5d8e6d28f | ||
|
|
fc0477a98e | ||
|
|
36d06b9e75 | ||
|
|
51bdd3efbc | ||
|
|
bc2584493a | ||
|
|
0f38772573 | ||
|
|
ef81277925 | ||
|
|
8b20931e12 | ||
|
|
b247982d37 |
No files matched your search
@@ -2421,11 +2421,18 @@ function BrowserOnAboutPageLoad(doc) {
|
||||
/* === about:home === */
|
||||
|
||||
if (doc.documentURI.toLowerCase() == "about:home") {
|
||||
let ss = Components.classes["@mozilla.org/browser/sessionstore;1"].
|
||||
getService(Components.interfaces.nsISessionStore);
|
||||
if (ss.canRestoreLastSession &&
|
||||
!PrivateBrowsingUtils.isWindowPrivate(window))
|
||||
doc.getElementById("launcher").setAttribute("session", "true");
|
||||
if (!PrivateBrowsingUtils.isWindowPrivate(window)) {
|
||||
let wrapper = {};
|
||||
Cu.import("resource:///modules/sessionstore/SessionStore.jsm", wrapper);
|
||||
let ss = wrapper.SessionStore;
|
||||
ss.promiseInitialized.then(function() {
|
||||
if (ss.canRestoreLastSession) {
|
||||
doc.getElementById("launcher").setAttribute("session", "true");
|
||||
}
|
||||
}).then(null, function onError(x) {
|
||||
Cu.reportError("Error in SessionStore init while processing 'about:home': " + x);
|
||||
});
|
||||
}
|
||||
|
||||
// Inject search engine and snippets URL.
|
||||
let docElt = doc.documentElement;
|
||||
|
||||
@@ -1 +1 @@
|
||||
28.1.0a1
|
||||
28.1.0
|
||||
Reference in new issue
Block a user