mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 946578. Don't special-case window.constructor in the window resolve hook. r=peterv
This commit is contained in:
parent
b3607329f0
commit
4499b1cd8b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user