Bug 1725430: disable screenshot shortcut for extension when screenshots.browser.component.enabled is true. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125850
This commit is contained in:
@@ -525,6 +525,7 @@ if (Services.prefs.getBoolPref("identity.fxaccounts.enabled")) {
|
||||
if (!screenshotsDisabled) {
|
||||
CustomizableWidgets.push({
|
||||
id: "screenshot-button",
|
||||
shortcutId: "key_screenshot",
|
||||
l10nId: "screenshot-toolbarbutton",
|
||||
onCommand(aEvent) {
|
||||
if (SCREENSHOT_BROWSER_COMPONENT) {
|
||||
@@ -533,7 +534,11 @@ if (!screenshotsDisabled) {
|
||||
"menuitem-screenshot"
|
||||
);
|
||||
} else {
|
||||
Services.obs.notifyObservers(null, "menuitem-screenshot-extension");
|
||||
Services.obs.notifyObservers(
|
||||
null,
|
||||
"menuitem-screenshot-extension",
|
||||
"toolbar"
|
||||
);
|
||||
}
|
||||
},
|
||||
onCreated(aNode) {
|
||||
|
||||
Reference in New Issue
Block a user