Eliminate JS warnings due to a bad prototype chain caused by the global scope pollution class. r+sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@161515 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3485,6 +3485,9 @@ nsWindowSH::GetInvalidatedGlobalScopePolluter(JSContext *cx, JSObject *obj)
|
||||
|
||||
::JS_SetPrivate(cx, proto, nsnull);
|
||||
|
||||
// Pull the global scope polluter out of the prototype chain.
|
||||
::JS_SetPrototype(cx, obj, ::JS_GetPrototype(cx, proto));
|
||||
|
||||
::JS_ClearScope(cx, proto);
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user