summaryrefslogtreecommitdiffstats
path: root/browser/components/extensions/parent/ext-pageAction.js
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /browser/components/extensions/parent/ext-pageAction.js
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-adbda400be353e676059e335c3c0aaf99e719475.tar.xz
firefox-adbda400be353e676059e335c3c0aaf99e719475.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'browser/components/extensions/parent/ext-pageAction.js')
-rw-r--r--browser/components/extensions/parent/ext-pageAction.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/browser/components/extensions/parent/ext-pageAction.js b/browser/components/extensions/parent/ext-pageAction.js
index aa45be8256..7dd07bd282 100644
--- a/browser/components/extensions/parent/ext-pageAction.js
+++ b/browser/components/extensions/parent/ext-pageAction.js
@@ -27,7 +27,7 @@ let pageActionMap = new WeakMap();
class PageAction extends PageActionBase {
constructor(extension, buttonDelegate) {
- let tabContext = new TabContext(tab => this.getContextData(null));
+ let tabContext = new TabContext(() => this.getContextData(null));
super(tabContext, extension);
this.buttonDelegate = buttonDelegate;
}
@@ -72,7 +72,7 @@ this.pageAction = class extends ExtensionAPIPersistent {
BrowserUsageTelemetry.recordWidgetChange(makeWidgetId(id), null, "addon");
}
- async onManifestEntry(entryName) {
+ async onManifestEntry() {
let { extension } = this;
let options = extension.manifest.page_action;
@@ -120,7 +120,7 @@ this.pageAction = class extends ExtensionAPIPersistent {
iconURL: this.action.getProperty(null, "icon"),
pinnedToUrlbar: this.action.getPinned(),
disabled: !this.action.getProperty(null, "enabled"),
- onCommand: (event, buttonNode) => {
+ onCommand: event => {
this.handleClick(event.target.ownerGlobal, {
button: event.button || 0,
modifiers: clickModifiersFromEvent(event),