Bug 869800 - Remove JS_GetGlobalObject from workers. r=bent
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user