Bug 1214316 - Improve assertions on top level remote accessible doc handling, r=tbsaunde

This commit is contained in:
Olli Pettay 2015-10-13 22:00:35 +03:00
parent 6415f1cbbd
commit f71a066625
2 changed files with 4 additions and 6 deletions

View File

@ -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();
}

View File

@ -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;
}