Bug 877532 - IAccessible::accNavigate with NAVRELATION_* fails, r=tbsaunde
authorAlexander Surkov <surkov.alexander@gmail.com>
Thu, 06 Jun 2013 14:10:43 +0900
changeset 145700 fbccd02d5cff11030bcf4491485bc250e35e472b
parent 145699 bec3013abff677fb075084ed9826f5c5e4f62cad
child 145701 c6bc2193a72b316ce2546c745922a9798745b60a
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstbsaunde
bugs877532
milestone24.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 877532 - IAccessible::accNavigate with NAVRELATION_* fails, r=tbsaunde
accessible/src/windows/msaa/AccessibleWrap.cpp
--- a/accessible/src/windows/msaa/AccessibleWrap.cpp
+++ b/accessible/src/windows/msaa/AccessibleWrap.cpp
@@ -842,17 +842,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))
@@ -924,17 +924,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);