Bug 1518253 - Add accessibles to focus path hash table in non-e10s. r=MarcoZ
authorEitan Isaacson <eitan@monotonous.org>
Tue, 08 Jan 2019 06:08:43 +0000
changeset 510036 01d64b7442cd23657d1135c9da9b254ba5317116
parent 510035 8d44d6ba5863f5b12d053196e20532a78796f8e3
child 510037 e08a0bb35c033607bdd78aa32d00e5debb218c41
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMarcoZ
bugs1518253
milestone66.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 1518253 - Add accessibles to focus path hash table in non-e10s. r=MarcoZ Differential Revision: https://phabricator.services.mozilla.com/D15858
accessible/android/DocAccessibleWrap.cpp
--- a/accessible/android/DocAccessibleWrap.cpp
+++ b/accessible/android/DocAccessibleWrap.cpp
@@ -209,16 +209,17 @@ void DocAccessibleWrap::CacheFocusPath(A
 
     ipcDoc->SendBatch(eBatch_FocusPath, cacheData);
   } else if (SessionAccessibility* sessionAcc =
                  SessionAccessibility::GetInstanceFor(this)) {
     nsTArray<AccessibleWrap*> accessibles;
     for (AccessibleWrap* acc = aAccessible; acc && acc != this->Parent();
          acc = static_cast<AccessibleWrap*>(acc->Parent())) {
       accessibles.AppendElement(acc);
+      mFocusPath.Put(acc->UniqueID(), acc);
     }
 
     sessionAcc->ReplaceFocusPathCache(accessibles);
   }
 }
 
 void DocAccessibleWrap::UpdateFocusPathBounds() {
   if (!mFocusPath.Count()) {