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

This commit is contained in:
Andrea Marchesini 2016-03-10 15:50:24 +01:00
parent a12df2bcd1
commit 1d9dbb9a39

View File

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