Fix bug 325991 -- spinning event queues requires more care. r=jst, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@189362 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1558,6 +1558,13 @@ nsScriptSecurityManager::CanExecuteScripts(JSContext* cx,
|
||||
//-- See if the current window allows JS execution
|
||||
nsIScriptContext *scriptContext = GetScriptContext(cx);
|
||||
if (!scriptContext) return NS_ERROR_FAILURE;
|
||||
|
||||
if (!scriptContext->GetScriptsEnabled()) {
|
||||
// No scripting on this context, folks
|
||||
*result = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsIScriptGlobalObject *sgo = scriptContext->GetGlobalObject();
|
||||
|
||||
if (!sgo) {
|
||||
|
||||
Reference in New Issue
Block a user