Files
tubestation/browser/components/extensions
Matt Mower 2b6183fd48 Bug 1538451 - Add openShortcutSettings() to browser.commands extension API. r=robwu,desktop-theme-reviewers,dao
- Introduce browser.commands.openShortcutSettings() method that can be
  called by extensions to open the shortcuts view in AddonManager. The
  extension's own shortcuts card is focused and scrolled into view.
- Add mochitests to verify:
  - AddonManager tab is opened or reused if already open when
    openShortcutSettings() is called.
  - AddonManager view is correctly set to shortcuts when
    openShortcutSettings() is called. The extension's own shortcuts card
    can be found in the page and is focused.
  - openShortcutSettings() works even when commands is an empty object
    in the manifest.
  - openShortcutSettings() is not available when commands is not defined
    in the manifest.

Supersedes https://bugzilla.mozilla.org/attachment.cgi?id=9183595 which
appears to be abandoned.

Differential Revision: https://phabricator.services.mozilla.com/D217920
2025-02-03 17:19:03 +00:00
..