Bug 1125423 part 1 - Attach WindowProxies to globals instead of using innerObject/outerObject hooks. r=bz,luke

This commit is contained in:
Jan de Mooij
2015-11-06 19:03:51 +01:00
parent 6497f92315
commit af31342c5b
27 changed files with 225 additions and 177 deletions

View File

@@ -1350,10 +1350,8 @@ _evaluate(NPP npp, NPObject* npobj, NPString *script, NPVariant *result)
return false;
}
obj = JS_ObjectToInnerObject(cx, obj);
MOZ_ASSERT(obj,
"JS_ObjectToInnerObject should never return null with non-null "
"input.");
obj = js::ToWindowIfWindowProxy(obj);
MOZ_ASSERT(obj, "ToWindowIfWindowProxy should never return null");
if (result) {
// Initialize the out param to void