mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 14:55:47 +00:00
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:
parent
85f07db4e5
commit
79f14a7580
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user