Bug 854480 - Remove old-style unwrapping from nsDOMClassInfo. r=mrbkap

This commit is contained in:
Bobby Holley 2013-04-01 15:17:50 -07:00
parent 9f6e03ced8
commit 3c5140eed1

View File

@ -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;
}