Bug 946578. Don't special-case window.constructor in the window resolve hook. r=peterv

This commit is contained in:
Boris Zbarsky 2013-12-09 10:34:04 -05:00
parent b3607329f0
commit 4499b1cd8b

View File

@ -3505,13 +3505,6 @@ nsWindowSH::NewResolve(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
}
}
// We want this code to be before the child frame lookup code
// below so that a child frame named 'constructor' doesn't
// shadow the window's constructor property.
if (sConstructor_id == id) {
return ResolveConstructor(cx, obj, objp);
}
if (!my_context || !my_context->IsContextInitialized()) {
// The context is not yet initialized so there's nothing we can do
// here yet.