Bug 1544261 - Wait for a11y panel to be fully initialized in devtools-toolbox test;yzen r=yzen
authorYura Zenevich <yura.zenevich@gmail.com>
Tue, 16 Apr 2019 02:36:53 +0000
changeset 469625 4c5502ff1c1c
parent 469624 630d6ce9c7b0
child 469626 0e9aea59c0b5
push id35878
push userapavel@mozilla.com
push dateTue, 16 Apr 2019 15:43:40 +0000
treeherdermozilla-central@258af4e91151 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyzen
bugs1544261
milestone68.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 1544261 - Wait for a11y panel to be fully initialized in devtools-toolbox test;yzen r=yzen Differential Revision: https://phabricator.services.mozilla.com/D27468
devtools/client/accessibility/reducers/accessibles.js
--- a/devtools/client/accessibility/reducers/accessibles.js
+++ b/devtools/client/accessibility/reducers/accessibles.js
@@ -30,17 +30,17 @@ function accessibles(state = getInitialS
     case RESET:
       return getInitialState();
     default:
       return state;
   }
 }
 
 function getActorID(accessible) {
-  return accessible.actorID || accessible._form.actor;
+  return accessible.actorID || (accessible._form && accessible._form.actor);
 }
 
 /**
  * If accessible is cached recursively remove all its children and remove itself
  * from cache.
  * @param {Map}    cache      Previous state maintaining a cache of previously
  *                            fetched accessibles.
  * @param {Object} accessible Accessible object to remove from cache.