зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1590196 - Remove unneeded backward compatibility check hasAccessibilityProperties; r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D62192 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
637ec229e2
Коммит
c27b038505
|
@ -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
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче