Remove tracking protection tour.

This commit is contained in:
Ascrod 2018-05-31 18:37:37 -04:00 committed by Roy Tam
commit fcd72d8112
8 changed files with 0 additions and 90 deletions

View file

@ -63,13 +63,9 @@ document.addEventListener("DOMContentLoaded", function () {
document.getElementById("favicon")
.setAttribute("href", FAVICON_PRIVACY);
tpToggle.addEventListener("change", toggleTrackingProtection);
document.getElementById("startTour")
.addEventListener("click", dontShowIntroPanelAgain);
let formatURLPref = Cc["@mozilla.org/toolkit/URLFormatterService;1"]
.getService(Ci.nsIURLFormatter).formatURLPref;
document.getElementById("startTour").setAttribute("href",
formatURLPref("privacy.trackingprotection.introURL"));
document.getElementById("learnMore").setAttribute("href",
formatURLPref("app.support.baseURL") + "private-browsing");
@ -89,10 +85,3 @@ function toggleTrackingProtection() {
new CustomEvent("AboutPrivateBrowsingToggleTrackingProtection",
{bubbles: true}));
}
function dontShowIntroPanelAgain() {
// Ask chrome to disable the doorhanger
document.dispatchEvent(
new CustomEvent("AboutPrivateBrowsingDontShowIntroPanelAgain",
{bubbles: true}));
}

View file

@ -69,9 +69,6 @@
<section class="section-main">
<p>&trackingProtection.description2;</p>
<p>
<a id="startTour" class="button">&trackingProtection.startTour1;</a>
</p>
</section>
<section class="section-main">