mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 854480 - Remove old-style unwrapping from nsDOMClassInfo. r=mrbkap
This commit is contained in:
parent
9f6e03ced8
commit
3c5140eed1
@ -4794,7 +4794,7 @@ nsWindowSH::GlobalResolve(nsGlobalWindow *aWin, JSContext *cx,
|
||||
JSObject* global;
|
||||
bool defineOnXray = ObjectIsNativeWrapper(cx, obj);
|
||||
if (defineOnXray) {
|
||||
global = xpc::Unwrap(cx, obj, false);
|
||||
global = js::UnwrapObjectChecked(obj, /* stopAtOuter = */ false);
|
||||
if (!global) {
|
||||
return NS_ERROR_DOM_SECURITY_ERR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user