mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
Bug 940754 - Fix rooting hazard in WorkerPrivateParent::WrapObject() r=bent
This commit is contained in:
parent
dd160d493c
commit
ad638e6d4a
@ -2159,7 +2159,8 @@ WorkerPrivateParent<Derived>::WrapObject(JSContext* aCx,
|
||||
|
||||
AssertIsOnParentThread();
|
||||
|
||||
JSObject* obj = WorkerBinding::Wrap(aCx, aScope, ParentAsWorkerPrivate());
|
||||
JS::Rooted<JSObject*> obj(aCx, WorkerBinding::Wrap(aCx, aScope,
|
||||
ParentAsWorkerPrivate()));
|
||||
|
||||
if (mRooted) {
|
||||
PreserveWrapper(this);
|
||||
|
Loading…
Reference in New Issue
Block a user