Bug 1253199 - MessagePort should handle the dispatching a message when the parent window is gone, r=smaug, a=ritu

This commit is contained in:
Andrea Marchesini 2016-03-10 15:50:24 +01:00
parent af39e012ff
commit bc39f7a28e

View File

@ -94,7 +94,6 @@ private:
DispatchMessage() const
{
nsCOMPtr<nsIGlobalObject> globalObject = mPort->GetParentObject();
MOZ_ASSERT(globalObject);
AutoJSAPI jsapi;
if (!globalObject || !jsapi.Init(globalObject)) {