Bug 1499545: Don't double-initialize WorkerPrivate::mMainThreadEventTarget. r=baku
authorJim Blandy <jimb@mozilla.com>
Wed, 17 Oct 2018 18:12:15 +0000
changeset 490113 bbff80c1200f8031eb67e785a87f79dc5c71c2b9
parent 490112 b2156ede19a58ae592cb36dece61f66e691bf54f
child 490114 1e14b8c79bb391afca2e4854eca8a051b5cb5d5d
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersbaku
bugs1499545
milestone64.0a1
Bug 1499545: Don't double-initialize WorkerPrivate::mMainThreadEventTarget. r=baku Differential Revision: https://phabricator.services.mozilla.com/D8919
dom/workers/WorkerPrivate.cpp
--- a/dom/workers/WorkerPrivate.cpp
+++ b/dom/workers/WorkerPrivate.cpp
@@ -2602,17 +2602,16 @@ WorkerPrivate::WorkerPrivate(WorkerPriva
   , mCondVar(mMutex, "WorkerPrivate CondVar")
   , mParent(aParent)
   , mScriptURL(aScriptURL)
   , mWorkerName(aWorkerName)
   , mWorkerType(aWorkerType)
   , mDebugger(nullptr)
   , mJSContext(nullptr)
   , mPRThread(nullptr)
-  , mMainThreadEventTarget(GetMainThreadEventTarget())
   , mWorkerControlEventTarget(new WorkerEventTarget(this,
                                                     WorkerEventTarget::Behavior::ControlOnly))
   , mWorkerHybridEventTarget(new WorkerEventTarget(this,
                                                    WorkerEventTarget::Behavior::Hybrid))
   , mParentStatus(Pending)
   , mStatus(Pending)
   , mBusyCount(0)
   , mLoadingWorkerScript(false)