Bug 799495 - New Tab Page is shown in Private Browsing Mode (with preload=true); r=jaws

This commit is contained in:
Tim Taubert 2013-02-01 10:18:57 -05:00
parent e8ee03d70d
commit 7e7063f770

View File

@ -1425,7 +1425,9 @@
// If we just created a new tab that loads the default
// newtab url, swap in a preloaded page if possible.
if (aURI == BROWSER_NEW_TAB_URL) {
// Do nothing if we're a private window.
if (aURI == BROWSER_NEW_TAB_URL &&
!PrivateBrowsingUtils.isWindowPrivate(window)) {
gBrowserNewTabPreloader.newTab(t);
}