diff --git a/dom/bindings/Codegen.py b/dom/bindings/Codegen.py index fb6f4ad135cc..2e9b59a715b5 100644 --- a/dom/bindings/Codegen.py +++ b/dom/bindings/Codegen.py @@ -2492,7 +2492,6 @@ class CGWrapGlobalMethod(CGAbstractMethod): def __init__(self, descriptor, properties): assert descriptor.interface.hasInterfacePrototypeObject() args = [Argument('JSContext*', 'aCx'), - Argument('JS::Handle', 'aScope'), Argument(descriptor.nativeType + '*', 'aObject'), Argument('nsWrapperCache*', 'aCache'), Argument('JS::CompartmentOptions&', 'aOptions'), diff --git a/dom/workers/WorkerScope.cpp b/dom/workers/WorkerScope.cpp index 117f727a80bf..824a34087ad3 100644 --- a/dom/workers/WorkerScope.cpp +++ b/dom/workers/WorkerScope.cpp @@ -299,8 +299,8 @@ DedicatedWorkerGlobalScope::WrapGlobalObject(JSContext* aCx) // We're wrapping the global, so the scope is undefined. JS::Rooted scope(aCx); - return DedicatedWorkerGlobalScopeBinding_workers::Wrap(aCx, scope, this, - this, options, + return DedicatedWorkerGlobalScopeBinding_workers::Wrap(aCx, this, this, + options, GetWorkerPrincipal()); } @@ -340,8 +340,7 @@ SharedWorkerGlobalScope::WrapGlobalObject(JSContext* aCx) // We're wrapping the global, so the scope is undefined. JS::Rooted scope(aCx); - return SharedWorkerGlobalScopeBinding_workers::Wrap(aCx, scope, this, this, - options, + return SharedWorkerGlobalScopeBinding_workers::Wrap(aCx, this, this, options, GetWorkerPrincipal()); }