зеркало из https://github.com/mozilla/pjs.git
Bug 580128 - Use compartments instead of global objects to see if we should use slim wrappers. r=peterv
This commit is contained in:
Родитель
2665901a71
Коммит
4af43e19cf
|
@ -1193,8 +1193,8 @@ XPCConvert::NativeInterface2JSObject(XPCLazyCallContext& lccx,
|
|||
}
|
||||
else if(IS_SLIM_WRAPPER_OBJECT(flat))
|
||||
{
|
||||
JSObject* global = JS_GetGlobalForObject(cx, flat);
|
||||
if(global == xpcscope->GetGlobalJSObject())
|
||||
if(flat->getCompartment(cx) ==
|
||||
xpcscope->GetGlobalJSObject()->getCompartment(cx))
|
||||
{
|
||||
*d = OBJECT_TO_JSVAL(flat);
|
||||
return JS_TRUE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче