Bug 869800 - Remove JS_GetGlobalObject from workers. r=bent

This commit is contained in:
Bobby Holley
2013-05-08 10:45:46 -07:00
parent 830c3b70a2
commit 6e6ec69eb8
3 changed files with 8 additions and 8 deletions

View File

@@ -633,7 +633,7 @@ ScriptExecutorRunnable::WorkerRun(JSContext* aCx, WorkerPrivate* aWorkerPrivate)
}
}
JS::RootedObject global(aCx, JS_GetGlobalObject(aCx));
JS::RootedObject global(aCx, JS_GetGlobalForScopeChain(aCx));
NS_ASSERTION(global, "Must have a global by now!");
JSPrincipals* principal = GetWorkerPrincipal();