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/modules/BrowserUsageTelemetry.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/modules/BrowserUsageTelemetry.sys.mjs')
-rw-r--r-- | browser/modules/BrowserUsageTelemetry.sys.mjs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/browser/modules/BrowserUsageTelemetry.sys.mjs b/browser/modules/BrowserUsageTelemetry.sys.mjs index 607ed4e31d..410d1e2ea3 100644 --- a/browser/modules/BrowserUsageTelemetry.sys.mjs +++ b/browser/modules/BrowserUsageTelemetry.sys.mjs @@ -759,7 +759,10 @@ export let BrowserUsageTelemetry = { if (URL == AppConstants.BROWSER_CHROME_URL) { return this._getBrowserWidgetContainer(node); } - if (URL.startsWith("about:preferences")) { + if ( + URL.startsWith("about:preferences") || + URL.startsWith("about:settings") + ) { // Find the element's category. let container = node.closest("[data-category]"); if (!container) { @@ -833,7 +836,8 @@ export let BrowserUsageTelemetry = { // Find the actual element we're interested in. let node = sourceEvent.target; const isAboutPreferences = - node.ownerDocument.URL.startsWith("about:preferences"); + node.ownerDocument.URL.startsWith("about:preferences") || + node.ownerDocument.URL.startsWith("about:settings"); while ( !UI_TARGET_ELEMENTS.includes(node.localName) && !node.classList?.contains("wants-telemetry") && |