mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Bug 1440592 - [1.0] Use correct where constant for new window. r=smaug
This commit is contained in:
parent
3165bc6030
commit
c1b732dbb8
@ -9642,9 +9642,9 @@ nsDocShell::InternalLoad(nsIURI* aURI,
|
|||||||
// outside of Gecko.
|
// outside of Gecko.
|
||||||
const int where = (aWindowTarget.IsEmpty() || targetDocShell)
|
const int where = (aWindowTarget.IsEmpty() || targetDocShell)
|
||||||
? nsIBrowserDOMWindow::OPEN_CURRENTWINDOW
|
? nsIBrowserDOMWindow::OPEN_CURRENTWINDOW
|
||||||
: nsIBrowserDOMWindow::OPEN_NEW;
|
: nsIBrowserDOMWindow::OPEN_NEWWINDOW;
|
||||||
|
|
||||||
if (where == nsIBrowserDOMWindow::OPEN_NEW && isDocumentAuxSandboxed) {
|
if (where == nsIBrowserDOMWindow::OPEN_NEWWINDOW && isDocumentAuxSandboxed) {
|
||||||
return NS_ERROR_DOM_INVALID_ACCESS_ERR;
|
return NS_ERROR_DOM_INVALID_ACCESS_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user