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 762d7f01fe
commit a58022be7d

View File

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