Bug 1193527 - Fix common PB warning (r=Gijs)

This commit is contained in:
Bill McCloskey 2015-08-26 09:55:38 -07:00
parent f612efb270
commit b8091a39b9

View File

@ -4881,7 +4881,9 @@ nsBrowserAccess.prototype = {
if (aOpener && aOpener.document) {
referrerPolicy = aOpener.document.referrerPolicy;
}
let isPrivate = PrivateBrowsingUtils.isWindowPrivate(aOpener || window);
let isPrivate = aOpener
? PrivateBrowsingUtils.isContentWindowPrivate(aOpener)
: PrivateBrowsingUtils.isWindowPrivate(window);
switch (aWhere) {
case Ci.nsIBrowserDOMWindow.OPEN_NEWWINDOW :