mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 12:13:22 +00:00
Bug 604449 - Protect against an outer window that has already been closed. r=jst
--HG-- extra : rebase_source : 9aa28d1ab4eff66f12806893c24930fcafad1d66
This commit is contained in:
parent
f3be4765a0
commit
bce9444a67
@ -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…
x
Reference in New Issue
Block a user