зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1738264 - don't show session restore infobar for private browsing windows, r=sfoster
This is a test. Differential Revision: https://phabricator.services.mozilla.com/D129971
This commit is contained in:
Родитель
22abdf8e0c
Коммит
b11c3672e8
|
@ -4137,8 +4137,13 @@ BrowserGlue.prototype = {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We've restarted at least once; we will show the notification if possible:
|
const win = BrowserWindowTracker.getTopWindow();
|
||||||
if (!SessionStore.canRestoreLastSession) {
|
// We've restarted at least once; we will show the notification if possible.
|
||||||
|
// We can't do that if there's no session to restore, or this is a private window.
|
||||||
|
if (
|
||||||
|
!SessionStore.canRestoreLastSession ||
|
||||||
|
PrivateBrowsingUtils.isWindowPrivate(win)
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4147,7 +4152,6 @@ BrowserGlue.prototype = {
|
||||||
++count
|
++count
|
||||||
);
|
);
|
||||||
|
|
||||||
const win = BrowserWindowTracker.getTopWindow();
|
|
||||||
const messageFragment = win.document.createDocumentFragment();
|
const messageFragment = win.document.createDocumentFragment();
|
||||||
const message = win.document.createElement("span");
|
const message = win.document.createElement("span");
|
||||||
const icon = win.document.createElement("img");
|
const icon = win.document.createElement("img");
|
||||||
|
|
Загрузка…
Ссылка в новой задаче