Commit Graph

317 Commits

Author SHA1 Message Date
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
5d1bdaab59 Bug 1572019 - Give the new protection panel an accessible name r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D40950
2019-08-07 14:22:10 +00:00
Tim Huang
7f220a7333 Bug 1571844 - Fix the alignment of the "Number blocked" description of the protections panel in the RTL mode. r=nhnt11
This patch changes the "righit='0'" to "end='0'" of the tracker conunter
box in order to show a correct alignment in RTL mode.

Differential Revision: https://phabricator.services.mozilla.com/D40863
2019-08-06 19:56:00 +00:00
Nihanth Subramanya
fd3bb38f0c Bug 1571680 - Remove hidden attributes from toggle switch labels in Site Not Working view. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D40801
2019-08-06 14:55:46 +00:00
Paul Zuehlcke
dd742f7b32 Bug 1568819 - Update identity popup styles for Skyline. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D40025
2019-08-05 16:37:35 +00:00
Johann Hofmann
827f0ff52c Bug 1569467 - Avoid setting the "hidden" attribute on protections popup switch labels. r=nhnt11
We were hiding these labels by setting the "hidden" attribute by default and then, in CSS,
negating the effect of "hidden" by using `display: unset;`. Turns out this isn't a great
idea because doing this won't remove the "hidden" attribute, which some code relies on
to figure out whether the element is hidden. Like in this case PanelMultiview:
https://searchfox.org/mozilla-central/rev/0ffa9e372df56c95547fed9c3433ddec4fbf6f11/browser/components/customizableui/PanelMultiView.jsm#1402

Here it tries to find elements to process as part of descriptionHeightWorkaround,
and that skips this technically visible element because it still has the hidden attribute.

Luckily that's easy to fix.

Differential Revision: https://phabricator.services.mozilla.com/D40552
2019-08-05 11:32:45 +00:00
Johann Hofmann
f56c1401a1 Bug 1570925 - Use context-fill for footer icons in the protections panel.r=nhnt11,timhuang
Depends on D40398

Differential Revision: https://phabricator.services.mozilla.com/D40399
2019-08-02 11:57:43 +00:00
Andrew Swan
b9d2a15e7d Bug 1564077 Fix protection panel height issue r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D40048
2019-07-31 21:10:36 +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
Tim Nguyen
17537bff2f Bug 1569375 - Refactor browser panel CSS to reduce shadow DOM traversal after CE conversion. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D39594
2019-07-31 15:22:08 +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
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
Nihanth Subramanya
fde9f46db9 Bug 1569191 - [Protections Panel] Breakage report view visual updates. r=johannh
1. Inline "Learn more" link with the main description text.
2. Remove margin-inline-start from labels
3. Remove textbox styling of the URL

Differential Revision: https://phabricator.services.mozilla.com/D39572
2019-07-29 09:03:44 +00:00
Nihanth Subramanya
a1f97d9138 Bug 1555225 - Part 1: Update browser.dtd and replace hard-coded strings. r=johannh,Pike
Differential Revision: https://phabricator.services.mozilla.com/D39114
2019-07-26 13:09:27 +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
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
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
Tim Nguyen
c4c8e76c96 Bug 1557814 - Replace XUL textbox with HTML input in identityPanel.inc.xul. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D34223
2019-06-07 19:15:19 +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
Johann Hofmann
fe16d2be45 Bug 1549605 - Add an indicator in the identity popup for when the site is verified by an imported root certificate. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D30136
2019-05-16 06:34:21 +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
James Teh
ea887cd7b3 Bug 1477673: Refactor PanelMultiView keyboard navigation to use a TreeWalker. r=Gijs,johannh
Previously, this code cached a list of controls on first use and used that for navigation.
This refactor addresses several issues:

1. There is now a separate focus order for tab/shift+tab and down/up arrows.
    This allows menulists, textboxes, etc. which use the arrow keys themselves to be focused with tab, but skipped with the arrows.
    This means the user won't fall into these controls when using the up/down arrow keys and be confused by the subsequent arrowing behaviour.

2. When a menulist, textbox, etc. is focused, the arrow keys, space and enter are now passed to the control.
    This is a better fix for handling of the arrow keys by menulists (bug 1522092).
    It also fixes left arrow in a textarea moving to the previous view instead of moving the caret (bug 1489874).

3. This improves handling of dynamic updates to the panel.
    For example, elements that are initially disabled and enabled later will be navigable.
    This is because the next element is determined dynamically by the TreeWalker, rather than using a cached list.

4. The interim fix for bug 1522092 disabled PanelMultiView keyboard navigation.
    This caused some regressions, including arrow keys/activation on the Site Identity Report a Problem link (bug 1539976) and some controls not being navigable if the Site Identity panel is opened using the mouse (bug 1539984).
    With the above fixes, we can now re-enable PanelMultiView keyboard navigation in the Site identity panel and thus fix these regressions.

5. Previously, PanelMultiView keyboard navigation was disabled in the main toolbar overflow menu.
    This is because the search box can be added to the overflow menu, which previously caused problems for the arrow keys.
    With the above fixes, we can now safely enable PanelMultiView keyboard navigation in the overflow menu.

6. PanelMultiView keyboard tests have been added.
    Previously, we relied on tests specific to various panels to exercise this functionality.

Differential Revision: https://phabricator.services.mozilla.com/D25905
2019-04-15 01:38:08 +00:00
Cosmin Sabou
04b730e5f8 Backed out 2 changesets (bug 1477673, bug 1454865) for browser chrome failures on browser_PanelMultiView_keyboard. CLOSED TREE
Backed out changeset eca8a6e641c0 (bug 1454865)
Backed out changeset 69db665d8263 (bug 1477673)
2019-04-09 14:29:08 +03:00
James Teh
2cbc3ca2b2 Bug 1477673: Refactor PanelMultiView keyboard navigation to use a TreeWalker. r=Gijs,johannh
Previously, this code cached a list of controls on first use and used that for navigation.
This refactor addresses several issues:

1. There is now a separate focus order for tab/shift+tab and down/up arrows.
    This allows menulists, textboxes, etc. which use the arrow keys themselves to be focused with tab, but skipped with the arrows.
    This means the user won't fall into these controls when using the up/down arrow keys and be confused by the subsequent arrowing behaviour.

2. When a menulist, textbox, etc. is focused, the arrow keys, space and enter are now passed to the control.
    This is a better fix for handling of the arrow keys by menulists (bug 1522092).
    It also fixes left arrow in a textarea moving to the previous view instead of moving the caret (bug 1489874).

3. This improves handling of dynamic updates to the panel.
    For example, elements that are initially disabled and enabled later will be navigable.
    This is because the next element is determined dynamically by the TreeWalker, rather than using a cached list.

4. The interim fix for bug 1522092 disabled PanelMultiView keyboard navigation.
    This caused some regressions, including arrow keys/activation on the Site Identity Report a Problem link (bug 1539976) and some controls not being navigable if the Site Identity panel is opened using the mouse (bug 1539984).
    With the above fixes, we can now re-enable PanelMultiView keyboard navigation in the Site identity panel and thus fix these regressions.

5. Previously, PanelMultiView keyboard navigation was disabled in the main toolbar overflow menu.
    This is because the search box can be added to the overflow menu, which previously caused problems for the arrow keys.
    With the above fixes, we can now safely enable PanelMultiView keyboard navigation in the overflow menu.

6. PanelMultiView keyboard tests have been added.
    Previously, we relied on tests specific to various panels to exercise this functionality.

Differential Revision: https://phabricator.services.mozilla.com/D25905
2019-04-09 09:54:39 +00:00
Tim Nguyen
a9e5e43d29 Bug 1513343 - Remove textarea binding and replace usages with html:textarea. r=bgrins,dao
Differential Revision: https://phabricator.services.mozilla.com/D15001
2019-03-05 11:41:42 +00:00