зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1718269 Renamed event that opens screenshots UI from the extension.r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D118855
This commit is contained in:
Родитель
6e16c12b6b
Коммит
2549c209de
|
@ -1292,7 +1292,7 @@ class nsContextMenu {
|
|||
|
||||
takeScreenshot() {
|
||||
if (!SCREENSHOT_BROWSER_COMPONENT) {
|
||||
Services.obs.notifyObservers(null, "menuitem-screenshot", true);
|
||||
Services.obs.notifyObservers(null, "menuitem-screenshot-extension", true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -484,7 +484,7 @@ if (!screenshotsDisabled) {
|
|||
l10nId: "screenshot-toolbarbutton",
|
||||
onCommand(aEvent) {
|
||||
if (!SCREENSHOT_BROWSER_COMPONENT) {
|
||||
Services.obs.notifyObservers(null, "menuitem-screenshot");
|
||||
Services.obs.notifyObservers(null, "menuitem-screenshot-extension");
|
||||
}
|
||||
},
|
||||
onCreated(aNode) {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const TOPIC = "menuitem-screenshot";
|
||||
const TOPIC = "menuitem-screenshot-extension";
|
||||
|
||||
this.screenshots = class extends ExtensionAPI {
|
||||
getAPI(context) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче