mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 982909 - Consistently use inner window when calling OpenJS. r=jst, r=mrbkap
This commit is contained in:
parent
3d7c690f68
commit
185fc1eed0
@ -1350,7 +1350,7 @@ nsHTMLDocument::Open(JSContext* /* unused */,
|
||||
NS_ASSERTION(nsContentUtils::CanCallerAccess(static_cast<nsIDOMHTMLDocument*>(this)),
|
||||
"XOW should have caught this!");
|
||||
|
||||
nsCOMPtr<nsIDOMWindow> window = GetWindow();
|
||||
nsCOMPtr<nsIDOMWindow> window = GetInnerWindow();
|
||||
if (!window) {
|
||||
rv.Throw(NS_ERROR_DOM_INVALID_ACCESS_ERR);
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user