Bug 1181595 - Improve null checks in MessagePort::RemoveDocFromBFCache, r=smaug

This commit is contained in:
Andrea Marchesini 2015-07-09 01:34:37 +01:00
parent c0810c6595
commit 40821cf892

View File

@ -900,7 +900,9 @@ MessagePort::RemoveDocFromBFCache()
}
nsPIDOMWindow* window = GetOwner();
MOZ_ASSERT(window);
if (!window) {
return;
}
nsIDocument* doc = window->GetExtantDoc();
if (!doc) {