Commit Graph

692 Commits

Author SHA1 Message Date
Vijay Budhram
abb3caec0b Bug 1542334 - Add telemetry for FxA app menu r=eoger,janerik
Differential Revision: https://phabricator.services.mozilla.com/D28347
2019-04-30 19:47:36 +00:00
Mohd Umar Alam
f1c10d6a8d Bug 1547614 View History Sidebar menu is missing label for in Library toolbutton r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D29133
2019-04-30 13:04:47 +00:00
Andreea Pavel
3407eee236 Bug 1533533 - add spacing after comma in panelUI.inc.xul on a CLOSED TREE 2019-04-26 09:57:53 +03:00
Mohd Umar Alam
af86d46266 Bug 1533533-Add a label to hide synced tabs sidebar when it is shown r=sfoster,jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D28177
2019-04-26 06:10:43 +00:00
Vijay Budhram
27bbee7a6e Bug 1542334 - Add FxA toolbar menu to app menu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D26377
2019-04-19 14:05:24 +00:00
Christian Frey
94c0fa6cd8 Bug 1523757 - Convert panelUI.inc.xul to Fluent r=flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D26447
2019-04-15 18:10:46 +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
Nicholas Cowles
50c9c30a0d Bug 1523747 - Move customize mode strings over to fluent, r=Gijs,jaws,flod
Differential Revision: https://phabricator.services.mozilla.com/D26418
2019-04-10 15:46:31 +00:00
Vijay Budhram
a103f9f794 Bug 1535937 - Add custom telemetry for FxA toolbar menu r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D25225
2019-04-09 13:30:59 +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
Brian Grinstead
4323ff9bed Bug 1495861 - Lazify panic panel and convert it to use FTL r=flod,Gijs
This is the only <radiogroup> and <radio> consumer in browser.xul.
By making the DOM get constructed on demand, we can avoid connecting
radios at startup, and it also gives us a chance to migrate the
strings to Fluent.

Differential Revision: https://phabricator.services.mozilla.com/D24914
2019-04-05 21:16:26 +00:00
Gijs Kruitbosch
29de5102a3 Bug 1537622 - fix various minor eslint issues in XUL files, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D24297
2019-04-05 12:18:24 +00:00
Kris Maglione
a43c190b7d Bug 1525511: Part 2c - Stop using LightweightThemeManager for customize mode themes menu. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D18784
2019-02-05 17:23:24 -08:00
Kris Maglione
3cc8a9b2f7 Bug 1525511: Part 2b - Delete recommended theme gunk. r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D18783
2019-02-05 21:20:37 -08:00
Vijay Budhram
1390532643 Bug 1537648 - remove change avatar button from FxA menu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D24527
2019-03-22 20:52:47 +00:00
Gijs Kruitbosch
90e59eec3c Bug 1538013 - fix sidebar icon in fxa menu to be correct in RTL and when the sidebar is moved, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D24500
2019-03-22 13:31:35 +00:00
Ian Moody
cac3a5f1e2 Bug 1536653 - browser/ automated ESLint no-throw-literal fixes. r=Gijs
Result of running:
$ mach eslint -funix browser/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

Differential Revision: https://phabricator.services.mozilla.com/D24110
2019-03-20 10:17:42 +00:00
Gijs Kruitbosch
540af9bfd7 Bug 1536633 - add ellipsis to 'connect another device' string in FXA menu, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D24100
2019-03-19 22:02:49 +00:00
Sam Foster
fce0a051f3 Bug 1534447 - Add application menu item to show Logins & Passwords. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D23737
2019-03-19 16:46:44 +00:00
Gijs Kruitbosch
2acd18a34a Bug 1524665 - update sync now item when syncing, r=vbudhram
Differential Revision: https://phabricator.services.mozilla.com//D23695
2019-03-18 15:44:28 +00:00
Vijay Budhram
70b2482ba6 Bug 1524665 - Add send tab to device button, r=gijs
Differential Revision: https://phabricator.services.mozilla.com//D23387
2019-03-13 20:31:59 +00:00
Vijay Budhram
ea307c8d64 Bug 1524665 - Add FxA avatar toolbar menu, r=gijs,eoger
Differential Revision: https://phabricator.services.mozilla.com//D20433
2019-02-23 17:56:19 +00:00
Shane Caraveo
85cfdb3344 Bug 1534714 handle checkbox state when appmenu refreshed across windows r=Gijs
This adds an onRefresh option for app menus so we can update custom controls
in any opened window.  In this case, we need to refresh the checkbox state in the
addon-installed panel.  We test this using the theme install test and verify both
windows do not have the checkbox.

Differential Revision: https://phabricator.services.mozilla.com/D23224
2019-03-14 18:31:07 +00:00
jawad
a0726a2d08 Bug 1387843 - Fix & Mirrored Library (Bookmarks & History) icons, on sidebar position changed. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D22637
2019-03-11 17:19:32 +00:00
Shane Caraveo
2d92779793 Bug 1534131 remove period from checkbox description r=flod,mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D22979
2019-03-11 16:19:19 +00:00
Shane Caraveo
af2e0877db Bug 1527127 update addon panel text for private windows r=flod,Gijs,mstriemer,rpl
Differential Revision: https://phabricator.services.mozilla.com/D19845
2019-02-27 20:05:38 +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
Felipe Gomes
3515d95b51 Bug 1527049 - Remove ScrollbarSampler.jsm. r=jaws
This module is no longer used.

Differential Revision: https://phabricator.services.mozilla.com/D19404
2019-02-11 20:54:08 +00:00
Brian Grinstead
c8a487965d Bug 1487065 - Implement popup-notification as a Custom Element r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D17699
2019-02-07 22:16:26 +00:00
Shane Caraveo
80465b08c2 Bug 1515701 show addons disabled doorhanger in private browsing, r=Gijs,flod
Differential Revision: https://phabricator.services.mozilla.com/D15445
2019-01-29 01:39:37 +00:00
Gijs Kruitbosch
72f868021e Bug 1498295 - move pocket strings into browser strings, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D15526
2019-01-08 12:36:37 +00:00
James Teh
064dad8942 Bug 1506504: Add/fix keyboard behaviour for browser toolbar buttons which open popups. r=Gijs
1. Fix the Firefox menu button so that it only handles space and enter, rather than incorrectly activating for *all* key presses.
2. Add keyboard support (space and enter) for the Library and page Actions buttons.
3. Add keyboard support (space and enter) for customizable widgets of type "view"; e.g. the Developer button.
4. Add keyboard support (space and enter) for page action buttons pinned to the URL bar; e.g. the Send Tab to Device button.

Differential Revision: https://phabricator.services.mozilla.com/D11608
2018-12-20 11:33:32 +00:00
Erica Wright
587eb415a6 Bug 1501980 - Add a mode label to the Content Blocking section in the main menu. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D13170
2018-11-30 14:30:18 +00:00
Brian Grinstead
c98e0ea6ce Bug 1507875 - Remove the customizable ui toolbarpaletteitem binding;r=Gijs
This removes the wrapping box inside the anonymous content, and replaces
the anonymous label with an ::after CSS rule that sets text based on
the [title] attribute.

Because it doesn't replicate the anonymous wrapping box with light DOM:
- Calling JS don't need to be updated (the child added via appendChild
  is still a direct descendant of the element).
- Many CSS selectors don't need to be updated (if they were targeting the
  slotted children as direct descendants. However, CSS selectors that were
  targeting the anonymous content directly do need to be updated, since those
  nodes are removed.

Differential Revision: https://phabricator.services.mozilla.com/D12172
2018-11-20 17:01:48 +00:00
Brian Grinstead
b7a5866b87 Bug 1500424 - Remove customizable ui toolbar-drag binding;r=Gijs
It was almost identical to the toolkit version, only missing a [customizing=true]
check to prevent drag. Since Customization only happens in browser/ we are able
to replace the toolkit version with the CUI version, and then remove the CUI version.

The `#toolbar-menubar:not([autohide="true"])` selector will fall back to the
`toolbar[type="menubar"]` selector in global.css to apply the toolkit one, so
that is removed from browser.css.

Differential Revision: https://phabricator.services.mozilla.com/D12146
2018-11-16 17:50:04 +00:00
Brian Grinstead
f218909fbd Bug 1507045 - Remove the customizable ui toolbar binding;r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D11841
2018-11-14 10:28:20 +00:00
Brian Grinstead
86f1e34bf2 Bug 1505734 - Remove logic from CustomizableUI toolbar XBL constructor;r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D11665
2018-11-14 00:46:20 +00:00
Alexander Surkov
0b3281e96b Bug 1493594 - replace customizationTarget XBL property by CustomizableUI method, r=gijs 2018-11-08 13:45:22 +07:00
Oriol Brufau
86a0cb997a Bug 1503600 - Reorder "Manage Extension" and "Remove Extension" in browserAction context menu. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D10382
2018-10-31 16:55:06 +00:00
Johann Hofmann
c913beb674 Bug 1501977 - Remove global Content Blocking toggle in the main menu. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D9916
2018-10-26 18:09:06 +00:00
Ehsan Akhgari
238a7d0478 Bug 1501286 - Part 2: Remove support for tracking protection UI from Control Centre r=johannh
Depends on D9519

Differential Revision: https://phabricator.services.mozilla.com/D9520
2018-10-25 16:52:19 +00:00
Dorel Luca
6839d2a276 Backed out 5 changesets (bug 1501286) for browser-chrome failures in browser/components/uitour/test/browser_trackingProtection.js
Backed out changeset cac0d4aa79d1 (bug 1501286)
Backed out changeset 578d395f555e (bug 1501286)
Backed out changeset d9940451c373 (bug 1501286)
Backed out changeset ca6c3139bdd2 (bug 1501286)
Backed out changeset 93d6f4d54f78 (bug 1501286)
2018-10-25 17:52:59 +03:00
Ehsan Akhgari
7030bb3146 Bug 1501286 - Part 2: Remove support for tracking protection UI from Control Centre r=johannh
Depends on D9519

Differential Revision: https://phabricator.services.mozilla.com/D9520
2018-10-25 13:35:20 +00:00
Gijs Kruitbosch
cbb2ba1edc Bug 1500268 - remove legacy toolbar and currentset support from customizableui, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D9172
2018-10-22 16:02:07 +00:00
Gijs Kruitbosch
9354cd0ed2 Bug 1500268 - remove customizableui toolbar's insertItem method, r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D9173
2018-10-22 16:02:05 +00:00
Ciure Andrei
535f27be8a Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-10-18 19:40:31 +03:00
Gijs Kruitbosch
51f90d5665 Bug 1499236 - remove customizableui menubar binding, r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D8901
2018-10-17 22:50:40 +00:00
Florian Quèze
e5e699b5d2 Bug 1498186 - Add a 'Task Manager' item opening about:performance in the 'More' section of the application menu, r=felipe. 2018-10-17 17:01:12 +02:00
Gijs Kruitbosch
fa4965716a Bug 1477669 - remove feed preview code and associated files/code, r=flod,mak,nika
Differential Revision: https://phabricator.services.mozilla.com/D8524
2018-10-16 12:47:36 +00:00