mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 604449 - Protect against an outer window that has already been closed. r=jst
--HG-- extra : transplant_source : d%82D1%05%CA%B9%7F%04%7C%C7%0B%A7%85%40A%13%2B%20%20
This commit is contained in:
parent
442be7263a
commit
4a0c50347c
@ -5814,7 +5814,7 @@ nsDOMConstructor::Create(const PRUnichar* aName,
|
||||
nsPIDOMWindow* outerWindow = aOwner->GetOuterWindow();
|
||||
nsPIDOMWindow* currentInner =
|
||||
outerWindow ? outerWindow->GetCurrentInnerWindow() : aOwner;
|
||||
if (!outerWindow ||
|
||||
if (!currentInner ||
|
||||
(aOwner != currentInner &&
|
||||
!nsContentUtils::CanCallerAccess(currentInner) &&
|
||||
!(currentInner = aOwner)->IsInnerWindow())) {
|
||||
|
Loading…
Reference in New Issue
Block a user