Bug 1567896 - Part 1: Implement social tracking protection info in control panel; r=johannh

Differential Revision: https://phabricator.services.mozilla.com/D39498
This commit is contained in:
Liang-Heng Chen
2019-07-30 15:00:23 +00:00
parent d1c55b7af5
commit 8ec2e8ed1d
6 changed files with 170 additions and 0 deletions

View File

@@ -54,6 +54,14 @@
<label flex="1" class="protections-popup-category-label">&contentBlocking.trackingProtection3.label;</label>
<label flex="1" id="protections-popup-tracking-protection-state-label" class="protections-popup-category-state-label"/>
</toolbarbutton>
<toolbarbutton id="protections-popup-category-socialblock"
onclick="gProtectionsHandler.showSocialblockerSubview();"
class="protections-popup-category" align="center">
<image class="protections-popup-category-icon socialblock-icon"/>
<label flex="1" id="protections-popup-category-label-default"
class="protections-popup-category-label">&contentBlocking.socialblock.label;</label>
<label flex="1" id="protections-popup-socialblock-state-label" class="protections-popup-category-state-label"/>
</toolbarbutton>
<toolbarbutton id="protections-popup-category-cookies"
onclick="gProtectionsHandler.showCookiesSubview();"
class="protections-popup-category" align="center">
@@ -159,6 +167,24 @@
</vbox>
</panelview>
<!-- Social Block SubView -->
<panelview id="protections-popup-socialblockView"
role="document"
title="&contentBlocking.socialblockView.label;"
descriptionheightworkaround="true">
<vbox id="protections-popup-socialblockView-heading">
<description>&contentBlocking.socialblockView.description;</description>
</vbox>
<vbox id="protections-popup-socialblockView-list" class="protections-popup-list">
</vbox>
<vbox class="panel-footer">
<button id="protections-popup-socialblockView-settings-button"
label="&contentBlocking.manageSettings.label;"
accesskey="&contentBlocking.manageSettings.accesskey;"
oncommand="gProtectionsHandler.openPreferences();"/>
</vbox>
</panelview>
<!-- Cookies SubView -->
<panelview id="protections-popup-cookiesView"
role="document"