Bug 533481 - Don't call into jsd from worker threads. r=bent/jorendorff

This commit is contained in:
Blake Kaplan 2009-12-11 16:52:40 -08:00
parent 4c7a1e7306
commit 9fa4c84e8a

View File

@ -995,9 +995,11 @@ nsDOMThreadService::CreateJSContext()
nsDOMWorkerSecurityManager::JSTranscodePrincipals,
nsDOMWorkerSecurityManager::JSFindPrincipal
};
JS_SetContextSecurityCallbacks(cx, &securityCallbacks);
static JSDebugHooks debugHooks;
JS_SetContextDebugHooks(cx, &debugHooks);
nsresult rv = nsContentUtils::XPConnect()->
SetSecurityManagerForJSContext(cx, gWorkerSecurityManager, 0);
NS_ENSURE_SUCCESS(rv, nsnull);