Commit Graph

50 Commits

Author SHA1 Message Date
Liang-Heng Chen
1a89eb6074 Bug 1570742 - fix sumo link of the social tracking doorhanger; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D40271
2019-08-01 21:28:11 +00:00
Liang-Heng Chen
614deda556 Bug 1567896 - Part 3: Implement social tracking protection doorhanger; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D39062
2019-08-01 08:15:57 +00:00
Tim Huang
7ff5bd2b5f Bug 1555231 - Part 4: Implement the number of blocked tracker in the footer section. r=nhnt11
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
2019-07-31 15:27:34 +00:00
Tim Huang
86b8ed8b58 Bug 1555231 - Part 3: Add the tooltip for showing the earliest record of the blocked tracker. r=nhnt11
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
2019-07-31 15:27:12 +00:00
Tim Huang
dee84cf6bd Bug 1555231 - Part 1: Move the protection setting button into the footer section and change the style of the footer section. r=nhnt11
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
2019-07-31 15:26:19 +00:00
Liang-Heng Chen
222cdd87bd Bug 1567896 - Part 1: Implement social tracking protection info in control panel; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D39498
2019-07-31 12:05:20 +00:00
Brindusan Cristian
24ae813975 Backed out 5 changesets (bug 1555231) for bc leaks at browser_354894_perwindowpb.js. CLOSED TREE
Backed out changeset 016f5882a4cb (bug 1555231)
Backed out changeset 7110eb5e7ab1 (bug 1555231)
Backed out changeset 2569f3cff021 (bug 1555231)
Backed out changeset 0bc58dafb302 (bug 1555231)
Backed out changeset 35fe7ce18534 (bug 1555231)
2019-07-31 13:12:37 +03:00
Tim Huang
b9bda627c4 Bug 1555231 - Part 4: Implement the number of blocked tracker in the footer section. r=nhnt11
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
2019-07-31 09:05:52 +00:00
Tim Huang
4ebe4aba64 Bug 1555231 - Part 3: Add the tooltip for showing the earliest record of the blocked tracker. r=nhnt11
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
2019-07-31 09:05:43 +00:00
Tim Huang
e44cd1992d Bug 1555231 - Part 1: Move the protection setting button into the footer section and change the style of the footer section. r=nhnt11
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
2019-07-31 09:05:35 +00:00
Oana Pop Rus
901828f3c7 Backed out 2 changesets (bug 1567896) for bc failures in browser_duplicateIDs.js on a CLOSED TREE
Backed out changeset 9f3d76a1c6b6 (bug 1567896)
Backed out changeset d2567cf47a5f (bug 1567896)
2019-07-30 23:04:32 +03:00
Liang-Heng Chen
8ec2e8ed1d Bug 1567896 - Part 1: Implement social tracking protection info in control panel; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D39498
2019-07-30 15:00:23 +00:00
Erica Wright
f6b89b4245 Bug 1563547 - Update app menu to lead to the protection report. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D39549
2019-07-29 19:15:11 +00:00
Tim Huang
b736287dd2 Bug 1567433 - Part 2: Fixing the issue that hover state of the tracking protection icon is incorrect during opening the protection panel. r=johannh
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
2019-07-29 11:41:45 +00:00
Nihanth Subramanya
c87ee78033 Bug 1555225 - Part 2: Update browser.properties and update panel header. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D39115
2019-07-26 13:09:42 +00:00
Tim Huang
88f93dab51 Bug 1566985 - Part 3: Fixing the height of the TP switch section when TP is disabled. r=nhnt11
This patch fixes the problem that TP switch section has an incorrect
height when the TP is disabled for the site.

Differential Revision: https://phabricator.services.mozilla.com/D38637
2019-07-24 08:58:38 +00:00
Tim Huang
ee5baf21e0 Bug 1566985 - Part 2: Remove unnecessary pref of the breakage report UI. r=nhnt11
Since we will show "Site not working" link for all channels. So we don't
need those prefs anymore.

Differential Revision: https://phabricator.services.mozilla.com/D38636
2019-07-24 08:57:29 +00:00
Tim Huang
175084fbfc Bug 1566985 - Part 1: Fixing the hidden state of 'Site not working' link. r=nhnt11
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
2019-07-24 08:57:13 +00:00
Tim Huang
fb7af30822 Bug 1562881 - Part 5: Change the anchor point of protections popup to the shield icon container and make identity popup and protection popup mutual exclusive. r=johannh
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
2019-07-17 13:25:03 +00:00
Tim Huang
0146a2f0f8 Bug 1562881 - Part 1: Moving the tracking protection icon out of the identity block and making it persistent. r=johannh
The patch moves the tracking protection icon out of the identity block,
and making it persistent.

Differential Revision: https://phabricator.services.mozilla.com/D37787
2019-07-17 13:25:02 +00:00
Johann Hofmann
f39fb784ed Bug 1565879 - Rename identity-popup-* to protections-popup-* in the new protections panel code. r=ewright
Depends on D38021

Differential Revision: https://phabricator.services.mozilla.com/D38022
2019-07-16 14:19:04 +00:00
Johann Hofmann
dbe58a5979 Bug 1565879 - Remove content blocking header section from the protections popup. r=ewright
These should be removed anyway and I figured renaming them didn't make much sense.

Differential Revision: https://phabricator.services.mozilla.com/D38021
2019-07-16 14:27:47 +00:00
Johann Hofmann
15324e6021 Bug 1562575 - Part 2 - Move content blocking section into the protections panel. r=ewright
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
2019-07-12 21:36:58 +00:00
Dorel Luca
8de55ca96d Backed out 3 changesets (bug 1562575) for Mochitest failures in browser/tools/mozscreenshots/controlCenter/browser_controlCenter.js. CLOSED TREE
Backed out changeset fce18a9477b0 (bug 1562575)
Backed out changeset c9b01b908020 (bug 1562575)
Backed out changeset de006229ba8f (bug 1562575)
2019-07-12 18:42:19 +03:00
Johann Hofmann
b8c3d65a54 Bug 1562575 - Part 2 - Move content blocking section into the protections panel. r=ewright
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
2019-07-12 10:27:24 +00:00
Victor Porof
a3641f184a Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D36041
2019-07-05 09:48:57 +02:00
Nihanth Subramanya
0ab9eddac0 Bug 1555236 - Port breakage report UI into protections panel. r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D35626
2019-07-03 14:52:20 +00:00
Nihanth Subramanya
2cf76e1443 Bug 1555236 - Implement Send Report subview stub. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D34519
2019-07-03 14:52:08 +00:00
Nihanth Subramanya
1e3cafd7f1 Bug 1555236 - Implement "Site Not Working?" sub-panel. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D34516
2019-07-03 14:51:42 +00:00
arthur.iakab
315d176283 Backed out 5 changesets (bug 1555236) for causing browser chrome failures on browser_trackingUI_report_breakage.js CLOSED TREE
Backed out changeset 866ffc49eb11 (bug 1555236)
Backed out changeset 24fda9469423 (bug 1555236)
Backed out changeset 7b6d88faaab2 (bug 1555236)
Backed out changeset 33c1b3a19483 (bug 1555236)
Backed out changeset 9f5563adc0de (bug 1555236)
2019-07-03 17:02:01 +03:00
Nihanth Subramanya
506911e8bb Bug 1555236 - Port breakage report UI into protections panel. r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D35626
2019-07-03 11:29:00 +00:00
Nihanth Subramanya
913f8c2b43 Bug 1555236 - Implement Send Report subview stub. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D34519
2019-07-03 11:28:43 +00:00
Nihanth Subramanya
8ec9c704b8 Bug 1555236 - Implement "Site Not Working?" sub-panel. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D34516
2019-07-03 11:28:14 +00:00
Tim Huang
0df06b0625 Bug 1555226 - Part 4: Implementing the switch flow for the mini panel. r=nhnt11
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
2019-07-02 08:14:34 +00:00
Tim Huang
6631c75cfb Bug 1555226 - Part 3: Allow the protections panel to be opened as a mini panel. r=nhnt11
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
2019-06-28 12:49:09 +00:00
Tim Huang
af8a4cc9fc Bug 1555226 - Part 2: Implementing the toggle switch flow for the TP switch section. r=nhnt11
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
2019-06-28 12:48:55 +00:00
Tim Huang
8bbdaaa8c8 Bug 1555226 - Part 1: Toggle the 'hasException' attribute on the protections panel after toggling the TP switch. r=nhnt11
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
2019-06-28 12:48:46 +00:00
Tim Huang
97ddeb4609 Bug 1555230 - Part 1: Add the footer section to Protection Panel. r=nhnt11
This patch implements the footer section of the Protection Panel.

Differential Revision: https://phabricator.services.mozilla.com/D35185
2019-06-24 18:10:09 +00:00
Tim Huang
a47ddf2ccd Bug 1555232 - Part 1: Add the protection settings section into Protection Panel. r=nhnt11
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
2019-06-14 09:17:13 +00:00
Nihanth Subramanya
9b61b6360b Bug 1551902 - Hide protections panel when focus is lost. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D32980
2019-06-06 15:17:58 +00:00
Nihanth Subramanya
5f03c65569 Bug 1551902 - Implement Tracking Protection toggle section in Protections Panel. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D32952
2019-06-06 15:17:43 +00:00
Daniel Varga
807237ed99 Backed out 4 changesets (bug 1551902) for browser-chrome failure at browser/base/content/test/trackingUI/browser_trackingUI_cryptominers.js. On a CLOSED TREE
Backed out changeset 762ba28bc409 (bug 1551902)
Backed out changeset 4c8afa61cbec (bug 1551902)
Backed out changeset 212cfe3c1893 (bug 1551902)
Backed out changeset 29cbb321a610 (bug 1551902)
2019-06-05 02:48:37 +03:00
Nihanth Subramanya
c91ee9ccf0 Bug 1551902 - Hide protections panel when focus is lost. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D32980
2019-06-04 21:48:03 +00:00
Nihanth Subramanya
b852391643 Bug 1551902 - Implement Tracking Protection toggle section in Protections Panel. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D32952
2019-06-04 21:47:20 +00:00
Gurzau Raul
8b57bf9f16 Backed out 4 changesets (bug 1551902) for failing at browser_protections_UI.js
Backed out changeset 974fd62d4135 (bug 1551902)
Backed out changeset 5dc18a9c4af8 (bug 1551902)
Backed out changeset 4eeb898f69f2 (bug 1551902)
Backed out changeset 9b7d5885e1db (bug 1551902)
2019-06-04 17:15:51 +03:00
Nihanth Subramanya
4db1b4155f Bug 1551902 - Hide protections panel when focus is lost. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D32980
2019-06-04 13:10:20 +00:00
Nihanth Subramanya
0e629fe92a Bug 1551902 - Implement Tracking Protection toggle section in Protections Panel. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D32952
2019-06-04 13:09:58 +00:00
Nihanth Subramanya
ca8b179bc9 Bug 1555222 - Show the protections panel when meta+clicking the identity box. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D32951
2019-05-31 18:24:08 +00:00
Nihanth Subramanya
c003434ef1 Bug 1551542 - Implement Protections Panel header. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D31070
2019-05-15 13:15:32 +00:00
Nihanth Subramanya
e51e424827 Bug 1551206 - Introduce new Protections Panel behind a pref. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D30921
2019-05-14 16:17:07 +00:00