Bug 1221852 - SharedWorker.port should be always not null, r=smaug, a=lizzard
authorAndrea Marchesini <amarchesini@mozilla.com>
Fri, 20 Nov 2015 11:27:09 -0800
changeset 298489 33f462662c46c37c192923711f6b1fd148bb05da
parent 298488 e9fc897934a75cedb4798c304c725bb68d9c3b0f
child 298490 dddd1cb91dd6381fd3d1e582b5e589299483130f
push id962
push userjlund@mozilla.com
push dateFri, 04 Dec 2015 23:28:54 +0000
treeherdermozilla-release@23a2d286e80f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, lizzard
bugs1221852
milestone43.0
Bug 1221852 - SharedWorker.port should be always not null, r=smaug, a=lizzard
dom/workers/SharedWorker.cpp
--- a/dom/workers/SharedWorker.cpp
+++ b/dom/workers/SharedWorker.cpp
@@ -131,17 +131,16 @@ SharedWorker::QueueEvent(nsIDOMEvent* aE
 
 void
 SharedWorker::Close()
 {
   AssertIsOnMainThread();
 
   if (mMessagePort) {
     mMessagePort->Close();
-    mMessagePort = nullptr;
   }
 }
 
 void
 SharedWorker::PostMessage(JSContext* aCx, JS::Handle<JS::Value> aMessage,
                           const Optional<Sequence<JS::Value>>& aTransferable,
                           ErrorResult& aRv)
 {