summaryrefslogtreecommitdiffstats
path: root/browser/modules/BrowserUsageTelemetry.sys.mjs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /browser/modules/BrowserUsageTelemetry.sys.mjs
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.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/modules/BrowserUsageTelemetry.sys.mjs')
-rw-r--r--browser/modules/BrowserUsageTelemetry.sys.mjs8
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") &&