From c27b03850571dc136cc68d51701d87689223d872 Mon Sep 17 00:00:00 2001 From: Lina Refai Date: Mon, 10 Feb 2020 13:23:12 +0000 Subject: [PATCH] Bug 1590196 - Remove unneeded backward compatibility check hasAccessibilityProperties; r=pbro Differential Revision: https://phabricator.services.mozilla.com/D62192 --HG-- extra : moz-landing-system : lando --- .../client/inspector/markup/markup-context-menu.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/devtools/client/inspector/markup/markup-context-menu.js b/devtools/client/inspector/markup/markup-context-menu.js index dbc9af9d60db..89b844e86d81 100644 --- a/devtools/client/inspector/markup/markup-context-menu.js +++ b/devtools/client/inspector/markup/markup-context-menu.js @@ -953,16 +953,6 @@ class MarkupContextMenu { } async _updateA11YMenuItem(menuItem) { - const hasMethod = await this.target - .actorHasMethod("domwalker", "hasAccessibilityProperties") - .catch( - // Connection to DOMWalker might have been already closed. - error => console.warn(error) - ); - if (!hasMethod) { - return; - } - const hasA11YProps = await this.walker.hasAccessibilityProperties( this.selection.nodeFront );