Commit graph

195 commits

Author SHA1 Message Date
Mike Conley
2945d873b2 Bug 1797836 - Part 3: Add a new AREA_ADDONS for the Unified Extensions panel. r=Gijs
This area doesn't have any special rules applied yet, nor can it have items moved to
it except programmatically. All of that will come later, including tests.

Differential Revision: https://phabricator.services.mozilla.com/D161079
2022-11-08 14:51:40 +00:00
William Durand
bdd0b1ff16 Bug 1799143 - Fix attention dot for MV3 extension buttons in the toolbar and overflow panel. r=dao,extension-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D161299
2022-11-08 14:28:10 +00:00
William Durand
ce2f90d9be Bug 1799203 - Do not open panel when context-clicking the UEB. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D161334
2022-11-05 09:07:14 +00:00
nchevobbe
7ecb07e081 Bug 1790313 - Tweak localized messages for SitePermsAddon install flow. r=rpl.
This patch adds a specific path for getting the localized text for the addon
install prompt for SitePermissionsAddon.
As the message that we want isn't very generic, each gated permission will have
its own localized addon prompt message.

Differential Revision: https://phabricator.services.mozilla.com/D160452
2022-11-04 19:21:33 +00:00
Iulian Moraru
ff81813adf Backed out 2 changesets (bug 1790313) for causing xpcshell failures on test_sitePermsAddonProvider.js. CLOSED TREE
Backed out changeset 6ddfdcdfe372 (bug 1790313)
Backed out changeset 0d95f36cb7d7 (bug 1790313)
2022-11-04 20:11:16 +02:00
nchevobbe
93d10b6337 Bug 1790313 - Tweak localized messages for SitePermsAddon install flow. r=rpl.
This patch adds a specific path for getting the localized text for the addon
install prompt for SitePermissionsAddon.
As the message that we want isn't very generic, each gated permission will have
its own localized addon prompt message.

Differential Revision: https://phabricator.services.mozilla.com/D160452
2022-11-04 17:08:35 +00:00
Mike Conley
61e5d4682f Bug 1798702 - Move Unified Extension strings into the default string set. r=NeilDeakin
This is to fix Fluent errors being thrown because the Unified Extension panel
isn't created dynamically anymore, and is part of the DOM (in a <template>).

Differential Revision: https://phabricator.services.mozilla.com/D161081
2022-11-03 14:23:41 +00:00
William Durand
b747827b5d Bug 1796559 - Only open about:addons on primary click. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D160329
2022-11-01 19:45:14 +00:00
Mike Conley
d5e58d8433 Bug 1797548 - Move Unified Extensions panelview into its own dedicated lazily created panel. r=cmkm,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D160403
2022-10-27 17:13:43 +00:00
Mark Banner
7beacf6f18 Bug 1795322 - Update toolkit modules references in browser/ code. r=mossop,Gijs,preferences-reviewers,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D160031
2022-10-26 08:06:35 +00:00
Csoregi Natalia
5f9da7b301 Backed out 12 changesets (bug 1795322) for causing multiple failures e.g. test_deletion_request_ping.py. CLOSED TREE
Backed out changeset aba25cbcda51 (bug 1795322)
Backed out changeset a4a35005ada9 (bug 1795322)
Backed out changeset 8e8d790eb0f4 (bug 1795322)
Backed out changeset db8903454bd3 (bug 1795322)
Backed out changeset 60cc71c61cad (bug 1795322)
Backed out changeset bc6a674994ad (bug 1795322)
Backed out changeset 6ac8a611f8c7 (bug 1795322)
Backed out changeset 9fb873ecfb31 (bug 1795322)
Backed out changeset c8a7a40c2a2f (bug 1795322)
Backed out changeset f2c118b6c6ce (bug 1795322)
Backed out changeset 38df43b4a70f (bug 1795322)
Backed out changeset 89aea8373411 (bug 1795322)
2022-10-25 23:47:58 +03:00
Mark Banner
97298a7f37 Bug 1795322 - Update toolkit modules references in browser/ code. r=mossop,Gijs,preferences-reviewers,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D160031
2022-10-25 19:49:26 +00:00
Tomislav Jovanovic
e82afd3462 Bug 1793629 - Implement attention indicator for the unified extensions button, r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D158938
2022-10-22 17:21:58 +00:00
Cosmin Sabou
acc26cd06f Backed out changeset 27a859f55fdd (bug 1793629) for causing bc failures on browser_preferences_usage.js. 2022-10-19 02:34:23 +03:00
Tomislav Jovanovic
0975a1bceb Bug 1793629 - Implement attention indicator for the unified extensions button, r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D158938
2022-10-18 21:44:48 +00:00
Cristian Tuns
b4150d1c6f Backed out changeset f8554e4080f2 (bug 1793629) for causing mochitest failures on browser_preferences_usage.js CLOSED TREE 2022-10-15 16:14:29 -04:00
Tomislav Jovanovic
670a479833 Bug 1793629 - Implement attention indicator for the unified extensions button, r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D158938
2022-10-15 19:05:26 +00:00
Norisz Fay
dd7b52f2f0 Backed out changeset c5a9bca461ce (bug 1793629) for causing multiple mochitest failures CLOSED TREE 2022-10-15 01:56:26 +03:00
Tomislav Jovanovic
f136f0b270 Bug 1793629 - Implement attention indicator for the unified extensions button, r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D158938
2022-10-14 21:03:23 +00:00
Tomislav Jovanovic
28b6c5c09f Bug 1777343 - Implement simple origin controls attention indicator, r=willdurand,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D158476
2022-10-13 22:04:52 +00:00
William Durand
08006b4add Bug 1794085 - Disable action button in unified extensions panel when extension already has permission. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D158826
2022-10-10 16:21:45 +00:00
William Durand
3f2ae958b1 Bug 1784218 - Add origin controls information to the unified extensions panel. r=zombie,Itiel,desktop-theme-reviewers
In addition to adding messages for origin controls, this patch slightly
changes the UI to account for long l10n strings. As a result, the name
of the extension is no longer truncated with CSS (ellipsis). This isn't
a big problem as these names cannot exceed 45 characters (max 2 lines of
text). This allows us to better handle long permission messages and
(Windows) scrollbars. UX is OK with that at the moment.

We also retain the "default" height of the message below the name of an
extension (using the `min-height` property) to avoid flickering as per
UX guidelines.

Differential Revision: https://phabricator.services.mozilla.com/D156808
2022-10-06 13:35:15 +00:00
Cristian Tuns
bf8c61ba7e Backed out changeset 9862aaa671f1 (bug 1784218) for causing mochitest failures on browser_ext_activeScript.js CLOSED TREE 2022-10-05 04:54:16 -04:00
William Durand
0f5aea30b7 Bug 1784218 - Add origin controls information to the unified extensions panel. r=zombie,Itiel,desktop-theme-reviewers
In addition to adding messages for origin controls, this patch slightly
changes the UI to account for long l10n strings. As a result, the name
of the extension is no longer truncated with CSS (ellipsis). This isn't
a big problem as these names cannot exceed 45 characters (max 2 lines of
text). This allows us to better handle long permission messages and
(Windows) scrollbars. UX is OK with that at the moment.

We also retain the "default" height of the message below the name of an
extension (using the `min-height` property) to avoid flickering as per
UX guidelines.

Differential Revision: https://phabricator.services.mozilla.com/D156808
2022-10-05 07:09:29 +00:00
Itiel
cb90e8d127 Bug 1787666 - Make the panel/addon banner items a proper subviewbutton r=sfoster,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D155796
2022-09-20 21:10:09 +00:00
Emilio Cobos Álvarez
eebe73e2bb Bug 1790920 - Minor fixes to toolbar key navigation. r=Gijs,extension-reviewers,willdurand
This is the last fix needed for this.

The issue is that command events now are triggered by synthetic click
events (which was not the case before pretty much by chance, a side
effect of how these events were implemented).

If we open a panel by a command event triggered by the synthetic click
event, rather than the real keypress event, we end up not detecting that
it is really a keyboard activation, and not focusing the first navigable
element in the panel for example, which is unfortunate.

This was caught by browser_toolbarButtonKeyPress.js.

We could keep the old behavior of not triggering commands from
dispatchEvent()-ed clicks, but honestly that's kind of bizarre.

Differential Revision: https://phabricator.services.mozilla.com/D157596
2022-09-19 17:02:38 +00:00
William Durand
f30aeeee44 Bug 1784223 - Move unified extensions button "after" the overflow menu. r=rpl,dao
This patch also adjusts some `min-width` rules like it was done for the
downloads button. It should work with either buttons OR both, which is
going to happen since the unified extensions button will be most likely
always visible in the toolbar.

Differential Revision: https://phabricator.services.mozilla.com/D154360
2022-09-15 16:34:38 +00:00
William Durand
0f39a1fdb9 Bug 1790015 - Re-align extension popups when anchored to the unified extensions button. r=rpl
We cannot fully remove `popupOptions` because that wouldn't position the popups correctly in RTL mode.

Differential Revision: https://phabricator.services.mozilla.com/D156960
2022-09-09 17:41:39 +00:00
Emilio Cobos Álvarez
13572bce66 Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 20:26:29 +00:00
Butkovits Atila
c520b707bd Backed out changeset 368a7ce1b104 (bug 1788273) for causing failures at browser_recently_closed_tabs.js. CLOSED TREE 2022-09-02 16:35:55 +03:00
Emilio Cobos Álvarez
0777329f69 Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 11:18:54 +00:00
William Durand
936f3b219a Bug 1785988 - Display message when hovering/focusing the menu button in the unified extensions panel. r=rpl,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D155055
2022-08-19 18:52:19 +00:00
William Durand
e7b425384a Bug 1785204 - Separate primary and secondary buttons in the unified extensions panel. r=Itiel,Jamie,rpl,desktop-theme-reviewers
Depends on D154282

Differential Revision: https://phabricator.services.mozilla.com/D154873
2022-08-19 13:57:12 +00:00
William Durand
cb31c16d87 Bug 1784292 - Anchor extension popups to the unified extensions button. r=mconley,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D154408
2022-08-19 06:25:13 +00:00
William Durand
36de950878 Bug 1784118 - Activate scripts when clicking an extension item in the unified extensions panel. r=Jamie,rpl
Differential Revision: https://phabricator.services.mozilla.com/D154282
2022-08-18 12:22:43 +00:00
William Durand
c7d049842d Bug 1780746 - Add new Telemetry objects for manage/remove/report events in unified extensions context menu. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D153460
2022-08-05 13:58:15 +00:00
William Durand
72e2060739 Bug 1782456 - Move unified extensions context menu to main popupset. r=rpl,Gijs
I noticed some missing context menu style when loading the context menu
from our own viewcache, which explains the difference between primary
and secondary button click. Not sure ecavtly what was missing as the
styles are all over the place.

The menu item actually works, the actions are called and for
checkbox-like menu items, the `checked` attribute is correctly set in
the "HTML". Also it looked like sub-menus weren't affected (e.g. Tree
Style Tab didn't have any issue).

While investigating, I also noticed that most (if not all) `menupopup`
elements are declared in the main popupset, so I tried to move the
unified extensions context menu to this main popupset and lazy-load the
l10n strings (similar to the toolbar context menu [1]).

That fixed the bug.

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1609556

Differential Revision: https://phabricator.services.mozilla.com/D153330
2022-08-02 13:24:28 +00:00
William Durand
183b3ef354 Bug 1777483 - Part 4 - Add extension actions to the unified extensions context menu. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D153096
2022-07-29 20:32:16 +00:00
William Durand
5757ca23ad Bug 1777483 - Part 3 - Open context menu when clicking the menu button. r=mixedpuppy
This patch allows to open the context menu on (primary) button click,
and that also works with keyboard navigation.

Depends on D152755

Differential Revision: https://phabricator.services.mozilla.com/D152853
2022-07-28 20:13:49 +00:00
William Durand
c4822c2fc2 Bug 1777483 - Part 2 - Add origin controls to the unified extensions context menu. r=rpl
Depends on D152665

Differential Revision: https://phabricator.services.mozilla.com/D152755
2022-07-28 20:13:49 +00:00
William Durand
c1bebd5d14 Bug 1777483 - Part 1 - Add a new context menu for extensions in the unified extensions panel. r=mixedpuppy,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D152665
2022-07-28 20:13:48 +00:00
William Durand
e10c07e3fe Bug 1780771 - Do not allow panel to be shown in customization mode. r=rpl
Depends on D152401

Differential Revision: https://phabricator.services.mozilla.com/D152508
2022-07-27 20:12:38 +00:00
William Durand
ca4e603ef2 Bug 1777484 - Allow to close unified extensions panel programmatically. r=rpl,Gijs
I also tried to defer the loading of the panel when it is about to be
open for the first time.

Differential Revision: https://phabricator.services.mozilla.com/D152401
2022-07-27 20:12:38 +00:00
William Durand
ac9a38c8e9 Bug 1780782 - Open about:addons when clicking the unified extensions button and there is no visible extension. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D152623
2022-07-25 19:39:15 +00:00
William Durand
5c7d65fa7d Bug 1778722 - Hide existing "Add-ons and themes" widget when "unifiedExtensions" pref is set. r=rpl
Note: the pref now requires a restart.

Depends on D151497

Differential Revision: https://phabricator.services.mozilla.com/D151699
2022-07-20 11:08:40 +00:00
William Durand
5a2ee397e7 Bug 1777481 - Introduce a new extension button on the toolbar. r=rpl,mstriemer,fluent-reviewers,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D151497
2022-07-20 11:08:40 +00:00
Butkovits Atila
9f6e3b1ee1 Backed out 2 changesets (bug 1777481, bug 1778722) for causing failures at browser_unified_extensions.js. CLOSED TREE
Backed out changeset 43863430aaa7 (bug 1778722)
Backed out changeset c4a72d22cd4f (bug 1777481)
2022-07-19 19:02:53 +03:00
William Durand
e82f620eeb Bug 1778722 - Hide existing "Add-ons and themes" widget when "unifiedExtensions" pref is set. r=rpl
Note: the pref now requires a restart.

Depends on D151497

Differential Revision: https://phabricator.services.mozilla.com/D151699
2022-07-19 15:10:00 +00:00
William Durand
e0a2e35190 Bug 1777481 - Introduce a new extension button on the toolbar. r=rpl,mstriemer,fluent-reviewers,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D151497
2022-07-19 15:10:00 +00:00
Mike Kaply
c649e0cec2 Bug 1754773 - Use new domain policy message for policy blocking. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D144834
2022-05-09 16:04:54 +00:00