mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1181595 - Improve null checks in MessagePort::RemoveDocFromBFCache, r=smaug
This commit is contained in:
parent
c0810c6595
commit
40821cf892
@ -900,7 +900,9 @@ MessagePort::RemoveDocFromBFCache()
|
||||
}
|
||||
|
||||
nsPIDOMWindow* window = GetOwner();
|
||||
MOZ_ASSERT(window);
|
||||
if (!window) {
|
||||
return;
|
||||
}
|
||||
|
||||
nsIDocument* doc = window->GetExtantDoc();
|
||||
if (!doc) {
|
||||
|
Loading…
Reference in New Issue
Block a user