зеркало из https://github.com/mozilla/gecko-dev.git
Bug 797583 - Remove bogus assertion. r=mrbkap
This commit is contained in:
Родитель
ee8c478091
Коммит
4404d1b89f
|
@ -0,0 +1,6 @@
|
|||
<script>
|
||||
|
||||
var ww = Object.create(window);
|
||||
ww.Components;
|
||||
|
||||
</script>
|
|
@ -46,3 +46,4 @@ load 754311.html
|
|||
load 776328.html
|
||||
load 776333.html
|
||||
load 791845.html
|
||||
load 797583.html
|
||||
|
|
|
@ -4787,9 +4787,7 @@ ContentComponentsGetterOp(JSContext *cx, JSHandleObject obj, JSHandleId id,
|
|||
// Do Telemetry on how often this happens.
|
||||
Telemetry::Accumulate(Telemetry::COMPONENTS_OBJECT_ACCESSED_BY_CONTENT, true);
|
||||
|
||||
// Warn once. Note that if somebody does window.Components we may have an
|
||||
// outer window here.
|
||||
MOZ_ASSERT(JS_GetGlobalForObject(cx, obj) == JS_ObjectToInnerObject(cx, obj));
|
||||
// Warn once.
|
||||
JSAutoCompartment ac(cx, obj);
|
||||
nsCOMPtr<nsPIDOMWindow> win =
|
||||
do_QueryInterface(nsJSUtils::GetStaticScriptGlobal(cx, obj));
|
||||
|
|
Загрузка…
Ссылка в новой задаче