Bug 794912 - Remove dynamic privilege check in isCrossOriginAccessPermitted. r=mrbkap

This commit is contained in:
Bobby Holley 2012-10-01 23:13:49 +02:00
Родитель 1a43e8a377
Коммит 10b97e0d43
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -254,12 +254,7 @@ AccessCheck::isCrossOriginAccessPermitted(JSContext *cx, JSObject *wrapper, jsid
return true; return true;
} }
if (IsWindow(name) && IsFrameId(cx, obj, id)) return IsWindow(name) && IsFrameId(cx, obj, id);
return true;
return (act == Wrapper::SET)
? nsContentUtils::IsCallerTrustedForWrite()
: nsContentUtils::IsCallerTrustedForRead();
} }
bool bool