diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /browser/components/extensions/parent/ext-pageAction.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.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.js | 6 |
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), |