Bug 1730836, wallpaper the old issue where code expects GetDocShell to return non-null, r=peterv

Differential Revision: https://phabricator.services.mozilla.com/D125669
This commit is contained in:
Olli Pettay 2021-09-16 12:29:59 +00:00
parent 85f07db4e5
commit 79f14a7580

View File

@ -2335,7 +2335,9 @@ void DocAccessible::ShutdownChildrenInSubtree(LocalAccessible* aAccessible) {
bool DocAccessible::IsLoadEventTarget() const {
nsCOMPtr<nsIDocShellTreeItem> treeItem = mDocumentNode->GetDocShell();
NS_ASSERTION(treeItem, "No document shell for document!");
if (!treeItem) {
return false;
}
nsCOMPtr<nsIDocShellTreeItem> parentTreeItem;
treeItem->GetInProcessParent(getter_AddRefs(parentTreeItem));