Bug 1704628 Part 3: Rework part of test browser_menu_api.js on macOS. r=mac-reviewers...
commit4561cd2312e3a82ad9f4096e88e2895ad9c1c5ba
authorBrad Werth <bwerth@mozilla.com>
Wed, 21 Apr 2021 15:08:38 +0000 (21 15:08 +0000)
committerBrad Werth <bwerth@mozilla.com>
Wed, 21 Apr 2021 15:08:38 +0000 (21 15:08 +0000)
treeceb9c2cf000e8395fb9748e690e04eeb61635573
parent03815b9a18231f6ded7aeb05adb98a10ff9531b8
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