Commit 35f33d1d authored by James Teh's avatar James Teh
Browse files

Bug 1642480: Null check content in nsAccUtils::IsARIALive. r=MarcoZ, a=jcristau

Differential Revision: https://phabricator.services.mozilla.com/D77748
parent f609ae8e
......@@ -474,6 +474,9 @@ bool nsAccUtils::IsARIALive(const Accessible* aAccessible) {
// This should be the same as the container-live attribute, but we don't need
// the other container-* attributes, so we can't use the same function.
nsIContent* ancestor = aAccessible->GetContent();
if (!ancestor) {
return false;
}
dom::Document* doc = ancestor->GetComposedDoc();
if (!doc) {
return false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment