mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1181595 - Improve null checks in MessagePort::RemoveDocFromBFCache, r=smaug
This commit is contained in:
parent
762d7f01fe
commit
a58022be7d
@ -900,7 +900,9 @@ MessagePort::RemoveDocFromBFCache()
|
||||
}
|
||||
|
||||
nsPIDOMWindow* window = GetOwner();
|
||||
MOZ_ASSERT(window);
|
||||
if (!window) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsIDocument* doc = window->GetExtantDoc();
|
||||
if (!doc) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user