commit f2c2157368682cece6ce9031fb4bac2d923e378e
parent 31fc5494cd3534aecaca69155b4bb99a3bb989e8
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Mon, 6 Oct 2025 16:19:56 +0000
Bug 1889738 - fix an intermittent failure with browser_antitracking_data_sent.js; r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D266924
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/browser/components/reportbrokensite/test/browser/browser_antitracking_data_sent.js b/browser/components/reportbrokensite/test/browser/browser_antitracking_data_sent.js
@@ -19,6 +19,13 @@ add_common_setup();
add_task(setupStrictETP);
+function getEtpCategory() {
+ return Services.prefs.getStringPref(
+ "browser.contentblocking.category",
+ "standard"
+ );
+}
+
add_task(async function testSendButton() {
ensureReportBrokenSitePreffedOn();
ensureReasonOptional();
@@ -39,7 +46,7 @@ add_task(async function testSendButton() {
hasMixedActiveContentBlocked: true,
hasMixedDisplayContentBlocked: true,
btpHasPurgedSite: false,
- etpCategory: "strict",
+ etpCategory: getEtpCategory(),
},
frameworks: {
fastclick: true,
@@ -69,7 +76,7 @@ add_task(async function testSendingMoreInfo() {
hasMixedActiveContentBlocked: true,
hasMixedDisplayContentBlocked: true,
btpHasPurgedSite: false,
- etpCategory: "strict",
+ etpCategory: getEtpCategory(),
},
frameworks: { fastclick: true, mobify: true, marfeel: true },
consoleLog: [