Bug 1253199 - MessagePort should handle the dispatching a message when the parent window is gone, r=smaug, a=ritu
authorAndrea Marchesini <amarchesini@mozilla.com>
Thu, 10 Mar 2016 15:50:24 +0100
changeset 323549 069a89a99547293cc750c37e1bd9899754b31059
parent 323548 ba8aa7ee36795c4a58a23e14287fa1cb637c5ed1
child 323550 1bbfacda02d2fc715ef47f46724e48733f0db357
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug, ritu
bugs1253199
milestone47.0a2
Bug 1253199 - MessagePort should handle the dispatching a message when the parent window is gone, r=smaug, a=ritu
dom/messagechannel/MessagePort.cpp
--- a/dom/messagechannel/MessagePort.cpp
+++ b/dom/messagechannel/MessagePort.cpp
@@ -89,17 +89,16 @@ public:
     return NS_OK;
   }
 
 private:
   nsresult
   DispatchMessage() const
   {
     nsCOMPtr<nsIGlobalObject> globalObject = mPort->GetParentObject();
-    MOZ_ASSERT(globalObject);
 
     AutoJSAPI jsapi;
     if (!globalObject || !jsapi.Init(globalObject)) {
       NS_WARNING("Failed to initialize AutoJSAPI object.");
       return NS_ERROR_FAILURE;
     }
 
     JSContext* cx = jsapi.cx();