Commit 70f0249c authored by Gurzau Raul's avatar Gurzau Raul
Browse files

Backed out changeset 8cf556022ec5 (bug 1585808) by MattN's request.

--HG--
extra : rebase_source : 190ed3696faecf849777a9f9f96f74d77d9ee11e
parent 732a29d6
......@@ -116,8 +116,6 @@ this.LoginBreaches = {
}
let breachAlertURL = new URL(breach.Name, baseBreachAlertURL);
breachAlertURL.searchParams.set("utm_campaign", "Desktop");
breachAlertURL.searchParams.set("utm_medium", "InProduct");
breach.breachAlertURL = breachAlertURL.href;
breachesByLoginGUID.set(login.guid, breach);
}
......
......@@ -121,6 +121,7 @@ add_task(async function test_notBreachedLogin() {
add_task(async function test_breachedLogin() {
Services.logins.addLogin(BREACHED_LOGIN);
const breachesByLoginGUID = await LoginBreaches.getPotentialBreachesByLoginGUID(
[NOT_BREACHED_LOGIN, BREACHED_LOGIN],
TEST_BREACHES
......@@ -130,11 +131,6 @@ add_task(async function test_breachedLogin() {
1,
"Should be 1 breached login: " + BREACHED_LOGIN.origin
);
Assert.strictEqual(
breachesByLoginGUID.get(BREACHED_LOGIN.guid).breachAlertURL,
"https://monitor.firefox.com/breach-details/Breached?utm_campaign=Desktop&utm_medium=InProduct",
"Breach alert link should be equal to the breachAlertURL"
);
});
add_task(async function test_notBreachedSubdomain() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment