Commit Graph

346 Commits

Author SHA1 Message Date
Luca Greco
82394c910e Bug 1983869 - Fix 'extensions settings' link click handling in post-install popup to preventing it to break customize mode. a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D264085

Differential Revision: https://phabricator.services.mozilla.com/D264286
2025-09-19 03:03:01 +00:00
Rob Wu
3d9b423dd8 Bug 1976773 - Remove mousenter/mouseleave listeners from browser-addons.js a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D258434

Differential Revision: https://phabricator.services.mozilla.com/D260202
2025-08-20 02:01:40 +00:00
Rob Wu
a57beb800d Bug 1966935 - Record telemetry when button is temporarily visible r=willdurand
To minimize the amount of new test logic, this commit adds lightweight
test helpers to head_unified_extensions.js, and inserts the relevant
checks in existing test files that exercise the code paths that trigger
the relevant cases.

Differential Revision: https://phabricator.services.mozilla.com/D249920
2025-05-22 22:32:08 +00:00
Rob Wu
fa7be7d762 Bug 1966935 - Record when Extensions app menu item is clicked r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D249919
2025-05-22 22:32:04 +00:00
Rob Wu
a484cec889 Bug 1966935 - Record when the user hides/unhides the Extensions Button r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D249918
2025-05-22 22:32:00 +00:00
Rob Wu
264a6df298 Bug 1966935 - Record whether the user prefers a hidden Extensions button r=willdurand
This allows us to measure how many % of the users have configured the
button to be hidden.

Differential Revision: https://phabricator.services.mozilla.com/D249917
2025-05-22 22:31:57 +00:00
Rob Wu
ad06d60b0b Bug 1948261 - Add "Pin extension to toolbar" checkbox in postinstall r=zombie,fluent-reviewers,bolsson
This adds the "Pin extension to toolbar" checkbox to the post-install
doorhanger, and ensures that the checkbox has a state that reflects the
actual placement of the button, including externally triggered changes.

Differential Revision: https://phabricator.services.mozilla.com/D250324
2025-05-22 13:07:06 +00:00
Sandor Molnar
6e6ee29021 Revert "Bug 1948261 - Add "Pin extension to toolbar" checkbox in postinstall r=zombie,fluent-reviewers,bolsson" for causing toolbar related bc failures
This reverts commit 5fdd2188e8.
2025-05-22 12:18:25 +00:00
Rob Wu
5fdd2188e8 Bug 1948261 - Add "Pin extension to toolbar" checkbox in postinstall r=zombie,fluent-reviewers,bolsson
This adds the "Pin extension to toolbar" checkbox to the post-install
doorhanger, and ensures that the checkbox has a state that reflects the
actual placement of the button, including externally triggered changes.

Differential Revision: https://phabricator.services.mozilla.com/D250324
2025-05-22 10:36:13 +00:00
Rob Wu
873cfadac3 Bug 1948260 - Show button when attention dot is requested r=willdurand
Unlike all previous conditions, the unhidden button cannot easily be
hidden, because the attention dot can currently not easily be dismissed.
To support users who prefer to ignore attention requests in favor of the
extension button being hidden more often, this behavior can be disabled
by setting the extensions.unifiedExtensions.button.ignore_attention
preference to true.

Differential Revision: https://phabricator.services.mozilla.com/D248166
2025-05-22 02:04:31 +00:00
Rob Wu
9169bcc64a Bug 1948260 - Keep button shown while mouse is on toolbar r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D248165
2025-05-22 02:04:27 +00:00
Rob Wu
7bf5769658 Bug 1948260 - Ensure Extensions button visibility when PopupNotifications.show() is used r=willdurand
Some doorhangers are anchored to the Extensions Button via
PopupNotifications.show() + gUnifiedExtensions.getPopupAnchorID().

The default behavior of PopupNotifications is to fall back to a
different anchor if the specified anchor is invisible. But if the
Extensions Button is hidden, we want to show it as needed, instead of
triggering the fallback.

This patch reveals the Extensions Button when PopupNotifications is
about to show the panel. This button will automatically be hidden
when the doorhanger is closed, as verified by the tests.

Differential Revision: https://phabricator.services.mozilla.com/D248163
2025-05-22 02:04:19 +00:00
Nick Grato
c28a52e112 Bug 1947209 - show local models used by a web extension linking to model details r=extension-reviewers,desktop-theme-reviewers,fluent-reviewers,rpl,bolsson,emilio,flod
adding feature and extension icons and labels

Differential Revision: https://phabricator.services.mozilla.com/D247805
2025-05-20 21:51:23 +00:00
Rob Wu
11bb0674a4 Bug 1948263 - Add Extensions appmenu item if needed r=willdurand,fluent-reviewers,bolsson,Gijs
By default, this patch does not change any behavior.
Only when the Extensions Button is hidden, then this replaces the
current generic "Add-ons and Themes" option with the "Extensions"
menu, which opens the Extensions Panel.

Differential Revision: https://phabricator.services.mozilla.com/D248161
2025-05-20 09:56:32 +00:00
Rob Wu
1b1787bc0b Bug 1948263 - Show "Moved to menu" notification after hiding r=willdurand,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D248160
2025-05-20 09:56:29 +00:00
Rob Wu
1dda631789 Bug 1948259 - Add menu item to hide/show Extensions Button in Customize mode r=willdurand,fluent-reviewers,bolsson
Bug 1948258 added a way to hide the Extensions Button, but not a way to
show it. This patch makes the following changes:

- always show the Extensions button in Customization mode, even if the
  user wants to hide the button unconditionally.

- add menu item to toggle the visibility of the Extensions Button.

- the new menu item is not shown anywhere except on the Extensions
  Button in Customization mode.

Differential Revision: https://phabricator.services.mozilla.com/D248158
2025-05-20 09:56:21 +00:00
Rob Wu
187993ede6 Bug 1948258 - Unhide button when (browserAction) panel opens r=willdurand
This is the basis for the follow-up patches to unhide the button as
needed. In this patch specifically, the hidden button is shown when a
browserAction panel is opened, and hidden again when the panel closes.

This also includes test coverage for ensuring that the browserAction
panel is shown along with the button when needed.

Differential Revision: https://phabricator.services.mozilla.com/D248157
2025-05-16 12:55:28 +00:00
Rob Wu
4f6f7c1712 Bug 1948258 - Allow Extensions button to be hidden via "Remove from Toolbar" r=willdurand
This adds the ability to hide the Extensions button via the standard
"Remove from Toolbar" menu item. The option is behind a temporary hidden
pref, until the follow-up work completes, as elaborated at
https://bugzilla.mozilla.org/show_bug.cgi?id=1948258#c1

Differential Revision: https://phabricator.services.mozilla.com/D248156
2025-05-16 12:55:25 +00:00
Rob Wu
8bc6e28aa7 Bug 1948258 - Add pref that enables the button to be hidden r=willdurand
This pref will be used as the mechanism to store the users preference
for the desired visibility of the Extensions Button. This initial patch
hides the button based on the pref only, and follow-up patches will
adjust the conditions (show the button independently of the pref) and
add UI to toggle this pref.

Differential Revision: https://phabricator.services.mozilla.com/D248155
2025-05-16 12:55:21 +00:00
William Durand
97ab9b4ec7 Bug 1964764 - Make settings link accessible in the add-on post-install popup. r=rpl,zombie
Differential Revision: https://phabricator.services.mozilla.com/D249261
2025-05-14 21:14:43 +00:00
William Durand
e60fd0cdc7 Bug 1956463 - Move data collection strings out of the preview so that localizers can localize them. r=rpl,bolsson,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D248197
2025-05-08 07:19:24 +00:00
William Durand
43e6a72132 Bug 1964962 - Make sure HTML link is present when needed in the post add-on install prompt. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D248278
2025-05-07 23:30:28 +00:00
William Durand
7ca91393b3 Bug 1956488 - Add sections to the add-on install/update/optional prompts. r=rpl,fluent-reviewers,desktop-theme-reviewers,dao,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D247088
2025-05-06 14:03:24 +00:00
William Durand
0207bbbb0b Bug 1956490 - Update (add-on) post-install prompt. r=rpl,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D246624
2025-05-06 12:45:14 +00:00
William Durand
e480e21ac0 Bug 1957990 - Use moz-checkbox in our add-on prompts. r=rpl,desktop-theme-reviewers,reusable-components-reviewers,hjones
Differential Revision: https://phabricator.services.mozilla.com/D246399
2025-04-29 19:50:09 +00:00
William Durand
9f33c3cd07 Bug 1960831 - Add access key to the T&I checkbox in the prompt. r=bolsson,rpl,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D245697
2025-04-17 07:32:51 +00:00
William Durand
00e4d03cc4 Bug 1959999 - Update string for the private checkbox in the add-on install prompt. r=bolsson,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D245311
2025-04-15 20:51:31 +00:00
William Durand
e3a0c89f6d Bug 1955942 - Show data collection permissions in the install prompt. r=rpl,fluent-reviewers,desktop-theme-reviewers,Itiel,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D242828
2025-04-11 19:14:21 +00:00
Florian Quèze
0bd3b586da Bug 1956726 - Migrate histograms to use Glean APIs for SECURITY_UI, r=chutten.
Differential Revision: https://phabricator.services.mozilla.com/D244199
2025-04-03 21:03:54 +00:00
William Durand
22e82b9c44 Bug 1957087 - Update add-on install/update prompt. r=rpl,desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D243455
2025-04-01 11:50:44 +00:00
Luca Greco
e8b9bf0362 Bug 1943031 - Fix addon-webext-permissions-notification preventing onPrivateBrowsingAllowedChanged callback from being garbage collected. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D235135
2025-01-27 12:34:06 +00:00
Florian Quèze
1ee252004d Bug 1935420 - rewrite JS code storing histograms in local variables to make automatic glean migration easier, r=chutten,fxview-reviewers,sync-reviewers,anti-tracking-reviewers,places-reviewers,markh,nsharpley.
Differential Revision: https://phabricator.services.mozilla.com/D234008
2025-01-24 16:18:32 +00:00
Rob Wu
712b391518 Bug 1931548 - Add double-confirmation for userScripts prompt r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D232637
2024-12-22 21:03:28 +00:00
Tom Schuster
00c657d84c Bug 1934875 - Remove inline event handler from unified extension panel. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D230928
2024-12-06 13:45:33 +00:00
Luca Greco
38a13671ae Bug 1925291 - Add Extensions Button panel a new per-item messagebar. r=willdurand,fluent-reviewers,desktop-theme-reviewers,dao,flod,devtools-reviewers,ochameau
Depends on D229902

Differential Revision: https://phabricator.services.mozilla.com/D229904
2024-12-04 18:42:21 +00:00
Goloman Adrian
90701c4927 Backed out 3 changesets (bug 1925291) for causing dt failures @browser_aboutdebugging_addons_debug_console.js. CLOSED TREE
Backed out changeset 540773496872 (bug 1925291)
Backed out changeset 46bd418a9e54 (bug 1925291)
Backed out changeset ac2a87182d6a (bug 1925291)
2024-12-04 14:37:29 +02:00
Luca Greco
762933f39d Bug 1925291 - Add Extensions Button panel a new per-item messagebar. r=willdurand,fluent-reviewers,desktop-theme-reviewers,dao,flod
Depends on D229902

Differential Revision: https://phabricator.services.mozilla.com/D229904
2024-12-04 10:43:19 +00:00
Luca Greco
5c78a8cdcd Bug 1931889 - Add a new string for the extensions button tooltip on addons disabled through the add-ons blocklist. r=willdurand,fluent-reviewers
Depends on D229617

Differential Revision: https://phabricator.services.mozilla.com/D229393
2024-11-20 17:03:16 +00:00
Luca Greco
70d20c5caf Bug 1917848 - Show blocklist attention dot and blocklist messagebar message on new hard/soft blocked extensions (Extensions Button frontend changes). r=fluent-reviewers,willdurand,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D228677
2024-11-20 17:03:15 +00:00
Spencer Poor
9e4c37fcd1 Bug 1920145 - [moz-message] Modified moz-message property definitions, fluent set to true. r=hjones,settings-reviewers,credential-management-reviewers,reusable-components-reviewers,translations-reviewers,backup-reviewers,mtigley,fxview-reviewers,sidebar-reviewers,mossop,mconley
Bug 1920145 - [moz-message] Further cleanup of moz-message attribute declarations, edited docs. r=hjones

Bug 1920145 - [moz-message] Edited additional README that mentions relevant header declarations. r=hjones

Bug 1920145 - [moz-message] Fixed linter errors stemming from changes. r=hjones

Bug 1920145 - [moz-message] Reverted accidental removals of necessary data-l10n-attrs references. r=hjones

Bug 1920145 - [moz-message] Further reverted other removals of data-l10n-attrs references in components that aren't moz-message. r=hjones

Bug 1920145 - [moz-message] Cleaned up a couple more references to datal10nAttrs in NotificationMessageBar.mjs. r=hjones

Differential Revision: https://phabricator.services.mozilla.com/D226891
2024-11-15 19:21:06 +00:00
William Durand
2db5ebc4b7 Bug 1923268 - Update soft/hard block strings. r=rpl,fluent-reviewers,android-reviewers,bolsson,delphine,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D225047
2024-10-14 10:00:26 +00:00
Luca Greco
c8860ff468 Bug 1921483 - Add 'See details' link to the alert dialog shown on addon-install-failed on Firefox Desktop. r=willdurand,fluent-reviewers,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D225107
2024-10-11 16:42:53 +00:00
Luca Greco
ed2fd2f4ac Bug 1911163 - Add full domains list in addon-webext-permissions-notification permissions list. r=desktop-theme-reviewers,fluent-reviewers,willdurand,bolsson,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D218593
2024-10-03 16:36:18 +00:00
Sam Foster
58c1f20705 Bug 1899598 - Hide the horizontal tab strip when vertical tabs are enabled. r=mconley,desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,emilio,willdurand,sclements
* Remove the #titlebar element, and ensure toolbars that comprise the titlebar get a .browser-titlebar class
* Ensure we call TabBarVisibility.update when initializing with verticalTab=true
* Adjust TabBarVisibility logic so we allow for the vertical tabs case
* Give #navigator-toolbar z-index: var(--browser-area-z-index-toolbox) to ensure the urlbar view doesnt get clipped behind the lower elements

Differential Revision: https://phabricator.services.mozilla.com/D222059
2024-10-02 22:14:13 +00:00
Luca Greco
691632d49c Bug 1917845 - Block and show an install error on new soft-blocked addons versions installs. r=willdurand,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D222101
2024-10-02 17:20:09 +00:00
Sandor Molnar
ae6fa0e167 Backed out changeset bcfd93872dad (bug 1911163) for causing perma bc failures @ browser_permissions_dismiss.js CLOSED TREE 2024-10-02 20:17:52 +03:00
Luca Greco
c43da85082 Bug 1911163 - Add full domains list in addon-webext-permissions-notification permissions list. r=desktop-theme-reviewers,fluent-reviewers,willdurand,bolsson,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D218593
2024-10-02 13:56:31 +00:00
Iulian Moraru
4a9432209c Backed out changeset 98b6ddc6deed (bug 1899598) for causing marionette failures on test_initialize_vertical_tabs.py. CLOSED TREE 2024-10-02 07:49:47 +03:00
Sam Foster
15a36fe751 Bug 1899598 - Hide the horizontal tab strip when vertical tabs are enabled. r=mconley,desktop-theme-reviewers,tabbrowser-reviewers,sidebar-reviewers,emilio,willdurand,sclements
* Remove the #titlebar element, and ensure toolbars that comprise the titlebar get a .browser-titlebar class
* Ensure we call TabBarVisibility.update when initializing with verticalTab=true
* Adjust TabBarVisibility logic so we allow for the vertical tabs case
* Give #navigator-toolbar z-index: var(--browser-area-z-index-toolbox) to ensure the urlbar view doesnt get clipped behind the lower elements

Differential Revision: https://phabricator.services.mozilla.com/D222059
2024-10-01 23:37:37 +00:00
Butkovits Atila
07292bcac1 Backed out changeset a31d48c96789 (bug 1911163) for causing failures at browser_parsable_css.js. CLOSED TREE 2024-10-01 19:07:07 +03:00