Bug 1291437. Don't enter the compartment of a possibly-gray window object in PostMessageEvent::Run. r=smaug
This commit is contained in:
@@ -81,7 +81,7 @@ PostMessageEvent::Run()
|
||||
|
||||
MOZ_ASSERT(targetWindow->IsInnerWindow(),
|
||||
"we ordered an inner window!");
|
||||
JSAutoCompartment ac(cx, targetWindow->GetWrapperPreserveColor());
|
||||
JSAutoCompartment ac(cx, targetWindow->GetWrapper());
|
||||
|
||||
// Ensure that any origin which might have been provided is the origin of this
|
||||
// window's document. Note that we do this *now* instead of when postMessage
|
||||
|
||||
Reference in New Issue
Block a user