зеркало из https://github.com/mozilla/gecko-dev.git
Bug 794912 - Remove dynamic privilege check in isCrossOriginAccessPermitted. r=mrbkap
This commit is contained in:
Родитель
1a43e8a377
Коммит
10b97e0d43
|
@ -254,12 +254,7 @@ AccessCheck::isCrossOriginAccessPermitted(JSContext *cx, JSObject *wrapper, jsid
|
|||
return true;
|
||||
}
|
||||
|
||||
if (IsWindow(name) && IsFrameId(cx, obj, id))
|
||||
return true;
|
||||
|
||||
return (act == Wrapper::SET)
|
||||
? nsContentUtils::IsCallerTrustedForWrite()
|
||||
: nsContentUtils::IsCallerTrustedForRead();
|
||||
return IsWindow(name) && IsFrameId(cx, obj, id);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Загрузка…
Ссылка в новой задаче