mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 533481 - Don't call into jsd from worker threads. r=bent/jorendorff
This commit is contained in:
parent
4c7a1e7306
commit
9fa4c84e8a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user