From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- browser/components/preferences/privacy.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'browser/components/preferences/privacy.js') diff --git a/browser/components/preferences/privacy.js b/browser/components/preferences/privacy.js index 178bc560c7..3b07b9cabf 100644 --- a/browser/components/preferences/privacy.js +++ b/browser/components/preferences/privacy.js @@ -435,7 +435,7 @@ var gPrivacyPane = { ); let trackingProtectionObserver = { - observe(subject, topic, data) { + observe() { gPrivacyPane._updateTrackingProtectionUI(); }, }; @@ -3230,13 +3230,6 @@ var gPrivacyPane = { "toolkit.crashreporter.infoURL", "crashReporterLearnMore" ); - setEventListener("crashReporterLabel", "click", function (event) { - if (event.target.localName == "a") { - return; - } - const checkboxId = event.target.getAttribute("for"); - document.getElementById(checkboxId).click(); - }); }, initPrivacySegmentation() { @@ -3317,7 +3310,7 @@ var gPrivacyPane = { * Initialize the opt-out-study preference checkbox into about:preferences and * handles events coming from the UI for it. */ - initOptOutStudyCheckbox(doc) { + initOptOutStudyCheckbox() { // The checkbox should be disabled if any of the below are true. This // prevents the user from changing the value in the box. // @@ -3361,7 +3354,7 @@ var gPrivacyPane = { }); }, - observe(aSubject, aTopic, aData) { + observe(aSubject, aTopic) { switch (aTopic) { case "sitedatamanager:updating-sites": // While updating, we want to disable this section and display loading message until updated -- cgit v1.2.3