[minor fix] Throws an information in the Browser Console

This commit is contained in:
janekptacijarabaci
2017-08-05 11:18:00 +02:00
committed by Roy Tam
parent d74e0046ee
commit bbbae3ba32
@@ -96,6 +96,10 @@ WindowNamedPropertiesHandler::getOwnPropDescriptor(JSContext* aCx,
return false;
}
if (str.IsEmpty()) {
return true;
}
// Grab the DOM window.
JS::Rooted<JSObject*> global(aCx, JS_GetGlobalForObject(aCx, aProxy));
nsGlobalWindow* win = xpc::WindowOrNull(global);