mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Bug 799495 - New Tab Page is shown in Private Browsing Mode (with preload=true); r=jaws
This commit is contained in:
parent
e8ee03d70d
commit
7e7063f770
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user