Commit Graph

151 Commits

Author SHA1 Message Date
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
James Teh
5b688adb5c Bug 1522092: Disable PanelMultiView's keyboard navigation code for the Site Identity panel. r=johannh
PanelMultiView's keyboard navigation code currently overrides the arrow keys in menulists.
This breaks the permission selectors in the Site Identity panel.
For now, just disable this keyboard navigation code.
DOM will then handle tabbing as it normally would.
This panel is more like a dialog than a menu, so users will generally navigate it with the tab key rather than the arrow keys anyway.
Note that the code in PanelMultiView which makes controls focusable still runs even with disablekeynav set, which is what we want.

Differential Revision: https://phabricator.services.mozilla.com/D21484
2019-02-28 08:32:19 +00:00
Alexander Surkov
3608f81451 Bug 1529221 - 'Report a Problem' text-link in the identity popup doesn't work anymore, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D20660
2019-02-21 14:52:40 +00:00
Alexander Surkov
62ec0b0d61 Bug 1527495 - migrate text-link binding to CE, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D19595
2019-02-12 19:14:40 -05:00
Johann Hofmann
a5bb82422f Bug 1522565 - Add sub-panels for cryptominers and fingerprinters in the identity popup. r=nhnt11
This is mostly a lot of boilerplate based off the trackers category/subpanels.

I would like to do some code-de-duplication, especially in browser-contentblocking,
but I figured it would be a good idea to leave that to a different bug to not obstruct
the feature from landing :)

Differential Revision: https://phabricator.services.mozilla.com/D18826
2019-02-06 14:11:39 +01:00
Johann Hofmann
c2b7e84c23 Bug 1522256 - Add telemetry events for new content blocking UI items. r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D17488
2019-01-25 16:07:40 +00:00
Dão Gottwald
33838dcf0f Bug 1517480 - Stop using graytext for labels in the "report a problem" subpanel. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D16870
2019-01-21 11:56:21 +00:00
Akash Srivastava
1547162610 Bug 1519920 - Remove the identity-popup-footer class. r=dao 2019-01-17 12:13:23 +01:00
Jonas Allmann
9568cfa156 Bug 1497922 - Fix Content Blocking tooltip, r=johannh
Re-inserted correct tooltip for Content Blocking settings button.

Differential Revision: https://phabricator.services.mozilla.com/D16679
2019-01-16 11:14:47 +00:00
Dão Gottwald
4c229a5e20 Bug 1515902 - Introduce panel-footer class to fix common color problem with footer buttons. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D15188
2018-12-21 15:44:44 +00:00
Johann Hofmann
3ee7ce8cc9 Bug 1501992 - Add a sub-panel for Cookies in the control center. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D12596
2018-12-02 12:47:36 +00:00
Ciure Andrei
c380f12756 Backed out 2 changesets (bug 1501992) for browser_trackingUI_state.js perma fails a=backout
Backed out changeset 6cb8a465440a (bug 1501992)
Backed out changeset b54b117c15e9 (bug 1501992)
2018-12-02 13:53:33 +02:00
Johann Hofmann
cf401d1caa Bug 1501992 - Add a sub-panel for Cookies in the control center. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D12596
2018-12-01 23:25:38 +00:00
shindli
41877a912a Backed out 2 changesets (bug 1501992) for bc failures in browser/components/urlbar/tests/browser/browser_UrlbarInput_tooltip.js CLOSED TREE
Backed out changeset ae07b8338331 (bug 1501992)
Backed out changeset 3ab27af474f9 (bug 1501992)
2018-12-01 07:06:36 +02:00
Johann Hofmann
72e4e8db49 Bug 1501992 - Add a sub-panel for Cookies in the control center. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D12596
2018-11-30 21:57:23 +00:00
Cosmin Sabou
81a079a296 Backed out 2 changesets (bug 1501992) for merge conflicts on dom/base/nsContentUtils.cpp
Backed out changeset 2dfe4105d6af (bug 1501992)
Backed out changeset 9ae8864b61d0 (bug 1501992)
2018-11-30 17:07:29 +02:00
Johann Hofmann
a8c4dd22ff Bug 1501992 - Add a sub-panel for Cookies in the control center. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D12596
2018-11-30 09:21:12 +00:00