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:
Birunthan Mohanathas 2015-06-30 11:16:03 -07:00
parent f7a9e21777
commit 6722583c18

View File

@ -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;
}