mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1214316 - Improve assertions on top level remote accessible doc handling, r=tbsaunde
This commit is contained in:
parent
6415f1cbbd
commit
f71a066625
@ -192,10 +192,5 @@ OuterDocAccessible::RemoteChildDoc() const
|
||||
if (!tab)
|
||||
return nullptr;
|
||||
|
||||
if (DocAccessibleParent* doc = tab->GetTopLevelDocAccessible()) {
|
||||
return doc;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(false, "no top level tab document?");
|
||||
return nullptr;
|
||||
return tab->GetTopLevelDocAccessible();
|
||||
}
|
||||
|
@ -1454,6 +1454,9 @@ TabParent::GetTopLevelDocAccessible() const
|
||||
return doc;
|
||||
}
|
||||
}
|
||||
|
||||
MOZ_ASSERT(docCount == 0, "If there isn't a top level accessible doc "
|
||||
"there shouldn't be an accessible doc at all!");
|
||||
#endif
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user