Commit Graph

173 Commits

Author SHA1 Message Date
Nihanth Subramanya
4a311226ba Bug 1573565 - [Protections Panel] Remove strict mode hint from trackers subview. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42821
2019-08-21 12:09:27 +00:00
Nihanth Subramanya
0c861704ae Bug 1560327 - [Protections Panel] Implement telemetry event recording. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42306
2019-08-20 13:49:28 +00:00
Nihanth Subramanya
5adbf33540 Bug 1573605 - Show undetected protections category items in a "Not Found" section, update UI to spec. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42113
2019-08-20 12:00:37 +00:00
Brindusan Cristian
4cd5930079 Backed out 2 changesets (bug 1573605) for bc failures at browser_trackingUI_state.js. CLOSED TREE
Backed out changeset 2bd2687949b5 (bug 1573605)
Backed out changeset 63d640d3d8b8 (bug 1573605)
2019-08-20 14:51:50 +03:00
Nihanth Subramanya
e088b9a505 Bug 1573605 - Show undetected protections category items in a "Not Found" section, update UI to spec. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D42113
2019-08-16 09:39:14 +00:00
Johann Hofmann
cb9a881e32 Bug 1573498 - Add SocialTracking.updateCategoryItem(). r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D41757
2019-08-13 21:16:27 +00:00
Tim Huang
5546bfc00e Bug 1573431 - Fix the issue that the "number of trackers" won't show if reopening it without a mouse move. r=nhnt11
We show the number of tracker if the data is up-to-date when opening the
panel.

Differential Revision: https://phabricator.services.mozilla.com/D41747
2019-08-13 13:32:47 +00:00
Liang-Heng Chen
20c1837c61 Bug 1573109 - use string pref to avoid overflow; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D41532
2019-08-12 19:52:02 +00:00
Nihanth Subramanya
d87d51417e Bug 1572528 - [Protections Panel] Update category item subviews. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D41271
2019-08-12 20:09:13 +00:00
Johann Hofmann
7b3f425a10 Bug 1570627 - Don't show the protections icon on sites where content blocking can't set exceptions. r=nhnt11
Showing the protection panel for pages where content blocking can't add exceptions and/or
the url classifier can't classify doesn't make sense and would just be confusing to the user
and our code.

Differential Revision: https://phabricator.services.mozilla.com/D41197
2019-08-09 19:34:22 +00:00
Liang-Heng Chen
35023fc01e Bug 1571494 - use new logic for showing doorhanger and items in privacy panel; r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D40817
2019-08-08 16:11:33 +00:00
Nihanth Subramanya
9ae199e4fb Bug 1555237 - Implement "No Trackers Detected" section. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D41109
2019-08-08 10:41:02 +00:00
Nihanth Subramanya
a7b1b40312 Bug 1555233 - Update browser_trackingUI_categories.js test for blocking/not-blocking UI split. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D41082
2019-08-07 22:21:03 +00:00
Nihanth Subramanya
7b7160a90a Bug 1555233 - [Protections Panel] Split Content Blocking category items into "Blocking" and "Not Blocking" sections. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D40861
2019-08-07 22:18:45 +00:00
Andrei Oprea
8400c70ae8 Bug 1567522 - Show info message in the Protection panel. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D39042
2019-08-07 17:57:48 +00:00
Marco Zehe
015d21ece2 Bug 1572029 - Give the tracking protection toggler an accessible label, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D40996
2019-08-07 17:24:50 +00:00
Cosmin Sabou
38ce347003 Backed out changeset 04fb760be124 (bug 1572029) for assertion failures on nsTextFormatter.cpp 2019-08-07 18:45:25 +03:00
Marco Zehe
01fef0c7a2 Bug 1572029 - Give the tracking protection toggler an accessible label, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D40996
2019-08-07 14:28:32 +00:00
Tim Huang
32f862b732 Bug 1567192 - Part 4: Change the trakcing protection icon state when toggling the TP switch in the protection panel and update the timeout of the toast to match the spec. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D40176
2019-08-06 09:10:30 +00:00
Tim Huang
6c6afd6545 Bug 1567192 - Part 3: Show the blue dot on the TP switch in the protection panel if needed and update its style. r=nhnt11
This patch makes the blue dot to be shown when the tracking protection
is disabled. And this updates the style of the blue dot on the TP switch
to match the spec.

Differential Revision: https://phabricator.services.mozilla.com/D40175
2019-08-06 09:10:17 +00:00
Tim Huang
5bdc6be1b0 Bug 1567422 - Part 3: Add support of the accessibility for the tracking protection icon tooltip. r=johannh
Set the 'aria-label' to the tracking protection icon container in order
to support the accessibility. We need this here since the accessiblity
won't automatically get the <tooltip> element here,

Differential Revision: https://phabricator.services.mozilla.com/D40417
2019-08-06 06:01:31 +00:00
Tim Huang
38ec2b7b99 Bug 1567422 - Part 2: Update the tooltip of the tracking protection icon. r=johannh
This patch modify the way how tooltip works on the tracking protection
icon. We use <tooltip> instead of 'tooltiptext' attribute in order to
limit the width of the tooltip in 500px.

Differential Revision: https://phabricator.services.mozilla.com/D40416
2019-08-06 06:01:17 +00:00
Andrea Marchesini
214a46202a Bug 1570971 - Enable all the annotation URL-Classifier features and remove their prefs, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40420
2019-08-05 11:34:24 +00:00
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