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/syncedtabs/TabListView.sys.mjs | |
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/syncedtabs/TabListView.sys.mjs')
-rw-r--r-- | browser/components/syncedtabs/TabListView.sys.mjs | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/browser/components/syncedtabs/TabListView.sys.mjs b/browser/components/syncedtabs/TabListView.sys.mjs index a280a0fe0f..041d7300d9 100644 --- a/browser/components/syncedtabs/TabListView.sys.mjs +++ b/browser/components/syncedtabs/TabListView.sys.mjs @@ -411,12 +411,9 @@ TabListView.prototype = { // Set up the custom context menu _setupContextMenu() { - Services.els.addSystemEventListener( - this._window, - "contextmenu", - this, - false - ); + this._window.addEventListener("contextmenu", this, { + mozSystemGroup: true, + }); for (let getMenu of [getContextMenu, getTabsFilterContextMenu]) { let menu = getMenu(this._window); menu.addEventListener("popupshowing", this, true); @@ -426,12 +423,9 @@ TabListView.prototype = { _teardownContextMenu() { // Tear down context menu - Services.els.removeSystemEventListener( - this._window, - "contextmenu", - this, - false - ); + this._window.removeEventListener("contextmenu", this, { + mozSystemGroup: true, + }); for (let getMenu of [getContextMenu, getTabsFilterContextMenu]) { let menu = getMenu(this._window); menu.removeEventListener("popupshowing", this, true); |