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/syncedtabs/TabListView.sys.mjs | |
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/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); |