Issue #2534 - Part 1: window.postMessage should provide a trusted MessageEvent

This commit is contained in:
Moonchild 2024-06-23 17:55:13 +02:00 committed by roytam1
commit fb16b1b4ae
3 changed files with 11 additions and 16 deletions

View file

@ -8885,8 +8885,7 @@ nsGlobalWindow::PostMessageMozOuter(JSContext* aCx, JS::Handle<JS::Value> aMessa
providedPrincipal,
callerInnerWin
? callerInnerWin->GetDoc()
: nullptr,
nsContentUtils::IsCallerChrome());
: nullptr);
JS::Rooted<JS::Value> message(aCx, aMessage);
JS::Rooted<JS::Value> transfer(aCx, aTransfer);