Bug 1513378 - Link to the content blocking tour from the "Learn How" link in about:preferences. r=ewright
authorJohann Hofmann <jhofmann@mozilla.com>
Tue, 15 Jan 2019 20:36:00 +0000
changeset 511148 e2b32bfc7522e311d487fbc1193c3e9348ab647c
parent 511147 9ff32c3351ac657b82370b774825f35ebdb05136
child 511149 447687e20dac74b338c8955ebb2d35ddfebd1fc7
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersewright
bugs1513378
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1513378 - Link to the content blocking tour from the "Learn How" link in about:preferences. r=ewright Differential Revision: https://phabricator.services.mozilla.com/D16543
browser/components/preferences/in-content/privacy.js
--- a/browser/components/preferences/in-content/privacy.js
+++ b/browser/components/preferences/in-content/privacy.js
@@ -467,19 +467,21 @@ var gPrivacyPane = {
 
     this.highlightCBCategory();
     this.readBlockCookies();
 
     let link = document.getElementById("contentBlockingLearnMore");
     let contentBlockingUrl = Services.urlFormatter.formatURLPref("app.support.baseURL") + "content-blocking";
     link.setAttribute("href", contentBlockingUrl);
 
+    let contentBlockingTour = Services.urlFormatter.formatURLPref("privacy.trackingprotection.introURL")
+      + `?step=3&newtab=true`;
     let warningLinks = document.getElementsByClassName("content-blocking-warning-learn-how");
     for (let warningLink of warningLinks) {
-      warningLink.setAttribute("href", contentBlockingUrl);
+      warningLink.setAttribute("href", contentBlockingTour);
     }
   },
 
   highlightCBCategory() {
     let value = document.getElementById("contentBlockingCategoryRadio").value;
     let standardEl = document.getElementById("contentBlockingOptionStandard");
     let strictEl = document.getElementById("contentBlockingOptionStrict");
     let customEl = document.getElementById("contentBlockingOptionCustom");