mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 764718 - Part 1: Make window.close work on windows opened via window.open from <iframe mozbrowser>, when OOP is disabled. r=bz
--HG-- extra : rebase_source : c5f99247921df912d2369757756998c037a0957a
This commit is contained in:
parent
7bf894ced1
commit
07f15b3b1b
@ -851,14 +851,14 @@ nsContentTreeOwner::ProvideWindow(nsIDOMWindow* aParent,
|
||||
!(aChromeFlags & (nsIWebBrowserChrome::CHROME_MODAL |
|
||||
nsIWebBrowserChrome::CHROME_OPENAS_DIALOG |
|
||||
nsIWebBrowserChrome::CHROME_OPENAS_CHROME))) {
|
||||
bool openSucceeded =
|
||||
*aWindowIsNew =
|
||||
BrowserElementParent::OpenWindowInProcess(aParent, aURI, aName,
|
||||
aFeatures, aReturn);
|
||||
|
||||
// If OpenWindowInProcess failed (perhaps because the embedder blocked the
|
||||
// popup), tell our caller not to proceed trying to create a new window
|
||||
// through other means.
|
||||
return openSucceeded ? NS_OK : NS_ERROR_ABORT;
|
||||
return *aWindowIsNew ? NS_OK : NS_ERROR_ABORT;
|
||||
}
|
||||
|
||||
// Where should we open this?
|
||||
|
Loading…
Reference in New Issue
Block a user