Bug 1622699 part 2: Make the Dev Tools A11y Panel use GetDeepestChildAtPointInProcess. r=yzen
authorJames Teh <jteh@mozilla.com>
Thu, 26 Mar 2020 18:01:19 +0000
changeset 520622 b6538a37a0cc05129d6ca4a1f7c6ff5aea8fb2a6
parent 520621 09d863d39780eaa0c1a935b6bb67fa52b4ec4d7e
child 520623 380eb92fd801cf72d4caa01a2761bc7e4c1f9d5f
push id37254
push usernerli@mozilla.com
push dateFri, 27 Mar 2020 04:48:07 +0000
treeherdermozilla-central@2d758b42bd73 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyzen
bugs1622699
milestone76.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 1622699 part 2: Make the Dev Tools A11y Panel use GetDeepestChildAtPointInProcess. r=yzen Differential Revision: https://phabricator.services.mozilla.com/D68303
devtools/server/actors/accessibility/walker.js
--- a/devtools/server/actors/accessibility/walker.js
+++ b/devtools/server/actors/accessibility/walker.js
@@ -1081,17 +1081,17 @@ const AccessibleWalkerActor = ActorClass
    * @return {null|Object}
    *         Accessible object, if available, that corresponds to a DOM node.
    */
   _findAndAttachAccessible(event) {
     const target = event.originalTarget || event.target;
     const docAcc = this.getRawAccessibleFor(this.rootDoc);
     const win = target.ownerGlobal;
     const scale = this.pixelRatio / getCurrentZoom(win);
-    const rawAccessible = docAcc.getDeepestChildAtPoint(
+    const rawAccessible = docAcc.getDeepestChildAtPointInProcess(
       event.screenX * scale,
       event.screenY * scale
     );
     return this.attachAccessible(rawAccessible, docAcc);
   },
 
   /**
    * Start picker content listeners.