Bug 604368 - Protect against the this translator returning a this object from another domain. r=peterv

--HG--
extra : rebase_source : cf6f17e100d0b2fc1cef483e3480757f636d877a
This commit is contained in:
Blake Kaplan 2010-10-14 16:57:56 -07:00
parent 7961434bd1
commit e1d2f6f844

View File

@ -1442,6 +1442,8 @@ nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJS* wrapper, uint16 methodIndex,
goto pre_call_clean_up;
}
thisObj = JSVAL_TO_OBJECT(v);
if(!JS_WrapObject(cx, &thisObj))
goto pre_call_clean_up;
}
}
}