This patch replaces the fake tracker numbers with the real data from the
TrackingDBService. We will pre-fetch the counter while hovering on the
shield icon in order to avoid a flicker on updating the counter. And we
make the tracker counter be hidden by default, then display it when
there is at least one record. We also add a css transition for
avoiding the flicker.
In addition, we rename some member variable in gProtectionsHandler.
Differential Revision: https://phabricator.services.mozilla.com/D39695
This patch implements the tooltip for showing the earliest date of the
block tracker record. The tooltip will be set during the initiation
gProtectionHandler module. And it will be updated if history has been
cleared. If there is no record, we won't do anyhting since the tracker
counter will be hidden entirely.
We also add an event handler for the hovar and focus state on the shield
icon in order to pre-fetch the data from tracking database. And we will
update the date here in case that there is no record during initition
but a new record comes later. The focus event is for the keyboard
navigation feature.
Differential Revision: https://phabricator.services.mozilla.com/D39694
This patch makes changes to the protection setting button and the footer
section. First, it moves the protection setting button into the footer
section. Second, it updates styles of footer section. And then, it
changes the hover state of buttons.
In addition, it adds a new function in gProtectionsHandler in order to
open the 'about:protections' page when clicking the 'Show report' button.
Differential Revision: https://phabricator.services.mozilla.com/D39692
This patch replaces the fake tracker numbers with the real data from the
TrackingDBService. We will pre-fetch the counter while hovering on the
shield icon in order to avoid a flicker on updating the counter. And we
make the tracker counter be hidden by default, then display it when
there is at least one record. We also add a css transition for
avoiding the flicker.
In addition, we rename some member variable in gProtectionsHandler.
Differential Revision: https://phabricator.services.mozilla.com/D39695
This patch implements the tooltip for showing the earliest date of the
block tracker record. The tooltip will be set during the initiation
gProtectionHandler module. And it will be updated if history has been
cleared. If there is no record, we won't do anyhting since the tracker
counter will be hidden entirely.
We also add an event handler for the hovar and focus state on the shield
icon in order to pre-fetch the data from tracking database. And we will
update the date here in case that there is no record during initition
but a new record comes later. The focus event is for the keyboard
navigation feature.
Differential Revision: https://phabricator.services.mozilla.com/D39694
This patch makes changes to the protection setting button and the footer
section. First, it moves the protection setting button into the footer
section. Second, it updates styles of footer section. And then, it
changes the hover state of buttons.
In addition, it adds a new function in gProtectionsHandler in order to
open the 'about:protections' page when clicking the 'Show report' button.
Differential Revision: https://phabricator.services.mozilla.com/D39692
This patch moves the setting of 'open' attribute to a right place. We
should set it before we open the panel instead of in the event
'onpopupshown'.
Depends on D39494
Differential Revision: https://phabricator.services.mozilla.com/D39495
This patch removes the old behavior of the breakage link which is
originally from the identity panel. The old behavior will cause the
hidden state to be incorrect, so removing them would fix the problem.
Also, this patch implements new behavior of the breakage link.
Differential Revision: https://phabricator.services.mozilla.com/D38635
This patch changes the anchor point of the protections popup to the
shield icon container. Also remove the alt key which is needed to
open the protection icon.
In addtion, this also makes these two popups are mutual exclusive.
Differential Revision: https://phabricator.services.mozilla.com/D37791
This is a pretty big change on paper, but most of the lines are copy-pasted, with some small
adjustments to get the content blocking code comfortable in browser-siteProtections.js.
Differential Revision: https://phabricator.services.mozilla.com/D37556
This is a pretty big change on paper, but most of the lines are copy-pasted, with some small
adjustments to get the content blocking code comfortable in browser-siteProtections.js.
Differential Revision: https://phabricator.services.mozilla.com/D37556
This patch makes the mini panel been shown after page reload due to
switch the tracking protection state. The mini panel will be auto hidden
after certain time, which can be configured by the pref
'browser.protections_panel.mini_panel_auto_hide_timing'. The default
value is 5 seconds.
This also implements the behavior that showing the protections panel on
clicking the mini panel.
Differential Revision: https://phabricator.services.mozilla.com/D36018
This patch implements the capability for opening the protections panel
as a mini panel. The mini panel is a protections panel which only displays
the header section.
Differential Revision: https://phabricator.services.mozilla.com/D36017
This patch implements the toggle switch flow for the TP switch section.
It adds a strip background to the TP switch section after toggled the
switch to off. Changing the string in the TP switch section. And the
breakage link should be remained after TP switch to off from on until
the page refreshs.
Differential Revision: https://phabricator.services.mozilla.com/D36016
This patch makes the 'hasException' attribtion to be toggled right after
toggling the TP switch. In order to do styling after the toggling.
Differential Revision: https://phabricator.services.mozilla.com/D36015
This patch adds a protection settings section into Protection Panel.
This section consist of one button which will open a
'about:preferences#privacy' when been clicked.
Differential Revision: https://phabricator.services.mozilla.com/D34873