mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 795150 - Add DOMCallbacks to worker thread JSRuntimes. (r=bz)
This commit is contained in:
parent
8debe5cabb
commit
cc7460a381
@ -402,6 +402,12 @@ CreateJSContextForWorker(WorkerPrivate* aWorkerPrivate)
|
||||
};
|
||||
JS_SetSecurityCallbacks(runtime, &securityCallbacks);
|
||||
|
||||
// DOM helpers:
|
||||
static js::DOMCallbacks DOMCallbacks = {
|
||||
InstanceClassHasProtoAtDepth
|
||||
};
|
||||
SetDOMCallbacks(runtime, &DOMCallbacks);
|
||||
|
||||
JSContext* workerCx = JS_NewContext(runtime, 0);
|
||||
if (!workerCx) {
|
||||
JS_DestroyRuntime(runtime);
|
||||
|
Loading…
Reference in New Issue
Block a user