From cc7460a381d31b1b317abec342618b6404aab050 Mon Sep 17 00:00:00 2001 From: Eric Faust Date: Wed, 3 Oct 2012 12:32:06 -0400 Subject: [PATCH] Bug 795150 - Add DOMCallbacks to worker thread JSRuntimes. (r=bz) --- dom/workers/RuntimeService.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dom/workers/RuntimeService.cpp b/dom/workers/RuntimeService.cpp index 3e8677db8288..450087f369cd 100644 --- a/dom/workers/RuntimeService.cpp +++ b/dom/workers/RuntimeService.cpp @@ -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);