Bug 1212457 - crash at ARIARowAccessible::GroupPosition(), r=marcoz
authorAlexander Surkov <surkov.alexander@gmail.com>
Thu, 08 Oct 2015 08:02:52 -0400
changeset 300247 199dffbb3503ccd73e0783e256bf9c2bb9f2dae5
parent 300246 b641ebf97eec93ffc1eaeaa88e6c71760621d3ea
child 300248 0b75225d75f73cd6a7f0b7e9afc8646f09a6432b
push id5392
push userraliiev@mozilla.com
push dateMon, 14 Dec 2015 20:08:23 +0000
treeherdermozilla-beta@16ce8562a975 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarcoz
bugs1212457
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1212457 - crash at ARIARowAccessible::GroupPosition(), r=marcoz
accessible/generic/ARIAGridAccessible.cpp
--- a/accessible/generic/ARIAGridAccessible.cpp
+++ b/accessible/generic/ARIAGridAccessible.cpp
@@ -542,18 +542,19 @@ ARIARowAccessible::
 }
 
 NS_IMPL_ISUPPORTS_INHERITED0(ARIARowAccessible, Accessible)
 
 GroupPos
 ARIARowAccessible::GroupPosition()
 {
   int32_t count = 0, index = 0;
-  if (nsCoreUtils::GetUIntAttr(nsAccUtils::TableFor(this)->GetContent(),
-                               nsGkAtoms::aria_rowcount, &count) &&
+  Accessible* table = nsAccUtils::TableFor(this);
+  if (table && nsCoreUtils::GetUIntAttr(table->GetContent(),
+                                        nsGkAtoms::aria_rowcount, &count) &&
       nsCoreUtils::GetUIntAttr(mContent, nsGkAtoms::aria_rowindex, &index)) {
     return GroupPos(0, index, count);
   }
 
   return AccessibleWrap::GroupPosition();
 }