From da4c7e7ed675c3bf405668739c3012d140856109 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:34:42 +0200 Subject: Adding upstream version 126.0. Signed-off-by: Daniel Baumann --- browser/components/preferences/preferences.js | 26 -- browser/components/preferences/preferences.xhtml | 4 +- browser/components/preferences/privacy.inc.xhtml | 27 +-- browser/components/preferences/privacy.js | 23 +- browser/components/preferences/sync.inc.xhtml | 39 +-- browser/components/preferences/tests/browser.toml | 6 +- .../tests/browser_applications_selection.js | 20 +- .../preferences/tests/browser_contentblocking.js | 2 +- .../tests/browser_privacy_dnsoverhttps.js | 162 +++++++++++++ .../preferences/tests/browser_subdialogs.js | 15 +- .../preferences/tests/siteData/browser.toml | 2 + .../tests/siteData/browser_clearSiteData.js | 41 +--- .../tests/siteData/browser_clearSiteData_v2.js | 258 ++++++++++++++++++++ .../components/preferences/translations.inc.xhtml | 54 +++-- browser/components/preferences/translations.js | 270 +++++++++++++++++++++ 15 files changed, 833 insertions(+), 116 deletions(-) create mode 100644 browser/components/preferences/tests/siteData/browser_clearSiteData_v2.js (limited to 'browser/components/preferences') diff --git a/browser/components/preferences/preferences.js b/browser/components/preferences/preferences.js index c30a51c67c..0cd498fd96 100644 --- a/browser/components/preferences/preferences.js +++ b/browser/components/preferences/preferences.js @@ -276,22 +276,6 @@ function init_all() { }); } -function telemetryBucketForCategory(category) { - category = category.toLowerCase(); - switch (category) { - case "containers": - case "general": - case "home": - case "privacy": - case "search": - case "sync": - case "searchresults": - return category; - default: - return "unknown"; - } -} - function onHashChange() { gotoPref(null, "hash"); } @@ -454,16 +438,6 @@ function search(aQuery, aAttribute) { } element.classList.remove("visually-hidden"); } - - let keysets = mainPrefPane.getElementsByTagName("keyset"); - for (let element of keysets) { - let attributeValue = element.getAttribute(aAttribute); - if (attributeValue == aQuery) { - element.removeAttribute("disabled"); - } else { - element.setAttribute("disabled", true); - } - } } async function spotlight(subcategory, category) { diff --git a/browser/components/preferences/preferences.xhtml b/browser/components/preferences/preferences.xhtml index eee227822a..64062f1f77 100644 --- a/browser/components/preferences/preferences.xhtml +++ b/browser/components/preferences/preferences.xhtml @@ -85,6 +85,8 @@ +