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 );