Bug 1704628 Part 3: Rework part of test browser_menu_api.js on macOS. r=mac-reviewers...
commit6f299a1041b05623250157773dc9f7ca0b0e9211
authorBrad Werth <bwerth@mozilla.com>
Tue, 20 Apr 2021 21:47:11 +0000 (20 21:47 +0000)
committerBrad Werth <bwerth@mozilla.com>
Tue, 20 Apr 2021 21:47:11 +0000 (20 21:47 +0000)
tree76d32bb8b1195eae9a4e4397f8a513da64b4c297
parentb6def6b66909edbf7ddbd6e53e92c9c72a6121c3
Bug 1704628 Part 3: Rework part of test browser_menu_api.js on macOS. r=mac-reviewers,mstange

This test contains a section that checks arrow key navigation of context menus,
which doesn't work with macOS native context menus. This patch disables that
section of the test and uses a more declarative context menu API when the pref
is set, which is an indicator that the test is being run on macOS with native
context menus.

Differential Revision: https://phabricator.services.mozilla.com/D112119
devtools/client/framework/test/browser_menu_api.js