зеркало из https://github.com/mozilla/pjs.git
Bug 725499. r=bent
This commit is contained in:
Родитель
408ff6a6de
Коммит
f5f5ba1f2c
|
@ -1759,11 +1759,14 @@ WorkerRunnable::Run()
|
|||
JSObject* targetCompartmentObject;
|
||||
nsIThreadJSContextStack* contextStack = nsnull;
|
||||
|
||||
nsRefPtr<WorkerPrivate> kungFuDeathGrip;
|
||||
|
||||
if (mTarget == WorkerThread) {
|
||||
mWorkerPrivate->AssertIsOnWorkerThread();
|
||||
cx = mWorkerPrivate->GetJSContext();
|
||||
targetCompartmentObject = JS_GetGlobalObject(cx);
|
||||
} else {
|
||||
kungFuDeathGrip = mWorkerPrivate;
|
||||
mWorkerPrivate->AssertIsOnParentThread();
|
||||
cx = mWorkerPrivate->ParentJSContext();
|
||||
targetCompartmentObject = mWorkerPrivate->GetJSObject();
|
||||
|
|
Загрузка…
Ссылка в новой задаче