Bug 1176683 - crash in mozilla::a11y::HyperTextAccessible::LandmarkRole() const, r=marcoz

This commit is contained in:
Alexander Surkov 2015-06-24 15:48:29 -07:00
parent 25ca96057d
commit e5ec2a0a6a

View File

@ -985,6 +985,9 @@ HyperTextAccessible::NativeAttributes()
nsIAtom*
HyperTextAccessible::LandmarkRole() const
{
if (!HasOwnContent())
return nullptr;
// For the html landmark elements we expose them like we do ARIA landmarks to
// make AT navigation schemes "just work".
if (mContent->IsHTMLElement(nsGkAtoms::nav)) {