Bug 1490729 - Ensure that we send variation=0 for the TP UI on about:privatebrowsing. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D5680

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Johann Hofmann 2018-09-12 18:12:45 +00:00
parent 48619535cc
commit 5c79352649
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ document.addEventListener("DOMContentLoaded", function() {
let introURL = RPMGetFormatURLPref("privacy.trackingprotection.introURL");
// If the CB UI is enabled, tell the tour page to show a different variation
// that is updated to reflect the CB control center UI.
let variation = contentBlockingUIEnabled ? "?variation=1" : "";
let variation = "?variation=" + (contentBlockingUIEnabled ? "1" : "0");
document.getElementById("startTour").setAttribute("href", introURL + variation);

View File

@ -70,7 +70,7 @@ add_task(async function test_links() {
await testLinkOpensUrl({ win, tab,
elementId: "startTour",
expectedUrl: "https://example.com/tour",
expectedUrl: "https://example.com/tour?variation=0",
});
await BrowserTestUtils.closeWindow(win);