mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1193527 - Fix common PB warning (r=Gijs)
This commit is contained in:
parent
f612efb270
commit
b8091a39b9
@ -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 :
|
||||
|
Loading…
Reference in New Issue
Block a user