зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1290264. Update handling of '/' target origin of postMessage to spec change to use the incumbent global. r=bholley
This commit is contained in:
Родитель
cf7ed9ce47
Коммит
61e3a83a14
|
@ -8347,11 +8347,8 @@ nsGlobalWindow::PostMessageMozOuter(JSContext* aCx, JS::Handle<JS::Value> aMessa
|
|||
nsCOMPtr<nsIPrincipal> providedPrincipal;
|
||||
|
||||
if (aTargetOrigin.EqualsASCII("/")) {
|
||||
providedPrincipal = GetEntryGlobal()->PrincipalOrNull();
|
||||
if (NS_WARN_IF(!providedPrincipal))
|
||||
return;
|
||||
providedPrincipal = callerPrin;
|
||||
}
|
||||
|
||||
// "*" indicates no specific origin is required.
|
||||
else if (!aTargetOrigin.EqualsASCII("*")) {
|
||||
nsCOMPtr<nsIURI> originURI;
|
||||
|
|
Загрузка…
Ссылка в новой задаче