Bug 1573565 - [Protections Panel] Remove strict mode hint from trackers subview. r=johannh

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nihanth Subramanya 2019-08-21 12:09:27 +00:00
parent 23291e6c74
commit 56dca3a160
4 changed files with 0 additions and 25 deletions

View File

@ -311,13 +311,6 @@ var TrackingProtection = {
));
},
get strictInfo() {
delete this.strictInfo;
return (this.strictInfo = document.getElementById(
"protections-popup-trackersView-strict-info"
));
},
strings: {
get subViewBlocked() {
delete this.subViewBlocked;
@ -411,9 +404,6 @@ var TrackingProtection = {
let contentBlockingLog = await gBrowser.selectedBrowser.getContentBlockingLog();
contentBlockingLog = JSON.parse(contentBlockingLog);
// Don't tell the user to turn on TP if they are already blocking trackers.
this.strictInfo.hidden = this.enabled;
let fragment = document.createDocumentFragment();
for (let [origin, actions] of Object.entries(contentBlockingLog)) {
let listItem = await this._createListItem(origin, actions);

View File

@ -46,15 +46,6 @@ async function assertSitesListed(blocked) {
);
is(listItems.length, 1, "We have 1 tracker in the list");
let strictInfo = document.getElementById(
"protections-popup-trackersView-strict-info"
);
is(
BrowserTestUtils.is_hidden(strictInfo),
Services.prefs.getBoolPref(TP_PREF),
"Strict info is hidden if TP is enabled."
);
let mainView = document.getElementById("protections-popup-mainView");
viewShown = BrowserTestUtils.waitForEvent(mainView, "ViewShown");
let backButton = trackersView.querySelector(".subviewbutton-back");

View File

@ -191,10 +191,6 @@
</vbox>
<vbox id="protections-popup-trackersView-list" class="protections-popup-list">
</vbox>
<hbox id="protections-popup-trackersView-strict-info">
<image/>
<label>&contentBlocking.trackersView.strictInfo.label;</label>
</hbox>
<vbox class="panel-footer">
<button id="protections-popup-trackersView-settings-button"
label="&contentBlocking.manageSettings2.label;"

View File

@ -795,8 +795,6 @@ you can use these alternative items. Otherwise, their values should be empty. -
<!ENTITY contentBlocking.manageSettings2.label "Manage Protection Settings">
<!ENTITY contentBlocking.manageSettings.accesskey "M">
<!ENTITY contentBlocking.trackersView.strictInfo.label "To block all trackers, set content blocking to “Strict”.">
<!ENTITY contentBlocking.socialblock.label "Social Media Trackers">
<!ENTITY contentBlocking.cookies2.label "Cross-Site Tracking Cookies">