Bug 877532 - IAccessible::accNavigate with NAVRELATION_* fails. r=tbsaunde, a=akeybl
authorAlexander Surkov <surkov.alexander@gmail.com>
Thu, 06 Jun 2013 14:10:43 +0900
changeset 137788 45e0653fe06e7845021612114434bc7b532d3b89
parent 137787 1e0aee8b507c164f9b6017cd738c8a4fcd6b61b7
child 137789 f4843c5acbdcb32d8fdb10dfbbb350599f38d841
push id2568
push userryanvm@gmail.com
push dateFri, 14 Jun 2013 20:23:38 +0000
treeherdermozilla-beta@45e0653fe06e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde, akeybl
bugs877532
milestone22.0
Bug 877532 - IAccessible::accNavigate with NAVRELATION_* fails. r=tbsaunde, a=akeybl
accessible/src/windows/msaa/AccessibleWrap.cpp
--- a/accessible/src/windows/msaa/AccessibleWrap.cpp
+++ b/accessible/src/windows/msaa/AccessibleWrap.cpp
@@ -860,17 +860,17 @@ AccessibleWrap::accNavigate(
     return E_INVALIDARG;
 
   if (accessible->IsDefunct())
     return CO_E_OBJNOTCONNECTED;
 
   VariantInit(pvarEndUpAt);
 
   Accessible* navAccessible = nullptr;
-  uint32_t xpRelation = 0;
+  int32_t xpRelation = -1;
 
   switch(navDir) {
     case NAVDIR_FIRSTCHILD:
       if (!nsAccUtils::MustPrune(accessible))
         navAccessible = accessible->FirstChild();
       break;
     case NAVDIR_LASTCHILD:
       if (!nsAccUtils::MustPrune(accessible))
@@ -939,17 +939,17 @@ AccessibleWrap::accNavigate(
       break;
 
     default:
       return E_INVALIDARG;
   }
 
   pvarEndUpAt->vt = VT_EMPTY;
 
-  if (xpRelation) {
+  if (xpRelation >= 0) {
     Relation rel = RelationByType(xpRelation);
     navAccessible = rel.Next();
   }
 
   if (!navAccessible)
     return E_FAIL;
 
   pvarEndUpAt->pdispVal = NativeAccessible(navAccessible);