diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /browser/components/extensions/parent/ext-pageAction.js | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 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), |