Files
tubestation/browser/components/extensions/schemas
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
..

This source code is available under the Mozilla Public License 2.0.

Additionally, parts of the schema files originated from Chromium source code:

Copyright (c) 2012 The Chromium Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE-CHROMIUM file.

You are not granted rights or licenses to the trademarks of the Mozilla Foundation or any party, including without limitation the Firefox name or logo.

For more information, see: https://www.mozilla.org/foundation/licensing.html