mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1175812 - Use preloaded about:privatebrowsing page for private new tab pages. r=dao
This fixes the flicker when opening a new tab in a private window.
This commit is contained in:
parent
f7a9e21777
commit
6722583c18
@ -1786,11 +1786,10 @@
|
||||
|
||||
let b;
|
||||
let usingPreloadedContent = false;
|
||||
let isPrivateWindow = PrivateBrowsingUtils.isWindowPrivate(window);
|
||||
|
||||
// If we open a new tab with the newtab URL,
|
||||
// check if there is a preloaded browser ready.
|
||||
if (aURI == BROWSER_NEW_TAB_URL && !isPrivateWindow) {
|
||||
if (aURI == BROWSER_NEW_TAB_URL) {
|
||||
b = this._getPreloadedBrowser();
|
||||
usingPreloadedContent = !!b;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user