mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 767835 - Avoid using about:privatebrowsing as the new tab URL when permanent private browsing has been turned on; r=ttaubert
This commit is contained in:
parent
9fa48b7247
commit
d25b53a796
@ -7131,6 +7131,10 @@ let gPrivateBrowsingUI = {
|
||||
!this.privateBrowsingEnabled;
|
||||
},
|
||||
|
||||
get autoStarted() {
|
||||
return this._privateBrowsingService.autoStarted;
|
||||
},
|
||||
|
||||
get privateBrowsingEnabled() {
|
||||
return this._privateBrowsingService.privateBrowsingEnabled;
|
||||
},
|
||||
|
@ -12,7 +12,9 @@ XPCOMUtils.defineLazyGetter(this, "BROWSER_NEW_TAB_URL", function () {
|
||||
const TOPIC = "private-browsing-transition-complete";
|
||||
|
||||
function getNewTabPageURL() {
|
||||
if (("gPrivateBrowsingUI" in window) && gPrivateBrowsingUI.privateWindow)
|
||||
if (("gPrivateBrowsingUI" in window) &&
|
||||
gPrivateBrowsingUI.privateWindow &&
|
||||
!gPrivateBrowsingUI.autoStarted)
|
||||
return "about:privatebrowsing";
|
||||
else
|
||||
return Services.prefs.getCharPref(PREF) || "about:blank";
|
||||
|
Loading…
Reference in New Issue
Block a user