Closed Bug 1778684 Opened 3 years ago Closed 6 months ago

Adjust extension button's behavior when there is no active extension

Categories

(WebExtensions :: General, enhancement, P3)

enhancement

Tracking

(relnote-firefox 145+, firefox145 fixed)

RESOLVED FIXED
145 Branch
Tracking Status
relnote-firefox --- 145+
firefox145 --- fixed

People

(Reporter: willdurand, Assigned: robwu)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [addons-jira])

Attachments

(4 files)

The new extension button introduced in Bug 1777481 should be hidden when there is no visible extension. In order to fully fix this bug, we should listen to some events to know when an extension is added/disabled/removed to make sure the button is only visible when there are visible extensions AND hide this button when there is no visible extension anymore (e.g., the user had only 1 extension enabled and removed it).

Severity: -- → N/A
Priority: -- → P2

According to the last UX meeting notes:

DECISION: Should behave like the download button.

  • You can right-click the download button and it has a “hide when empty” option
  • It stays in the toolbar (keeps its place), but is not visible
  • To get it back, you go into customize mode and right click again
  • Clicking the Extension button when there are no extensions doesn’t show the panel but instead opens a about:addons tab with recommended extensions
Summary: Hide extension button when there is no visible extension → Adjust extension button's behavior when there is no active extension
Depends on: 1777481
No longer depends on: 1777483
Type: task → enhancement

while discussing about this bug a few days ago, William and I were wondering if we should also take into account that (if we plan to anchor on the unified extensions button the install flows doorhangers) the unified extension button may also have to become visible when no extension is currently active but there are some in the process of being installed.

Depends on: 1780782

I filed Bug 1781773 for allowing the widget to be customizable, which is kinda related to this bug.

Duplicate of this bug: 1811727
Depends on: 1814871
Depends on: 1808459
Priority: P2 → P3

Small update, we are considering hiding the extension button if user has not installed any extensions.

Duplicate of this bug: 1892619

This is important in enterprise uses cases as well. For kiosks, locked down machines, etc. with no addons, the button is superfluous.

See Also: → 1795235

(In reply to Mike Kaply [:mkaply] from comment #8)

This is important in enterprise uses cases as well. For kiosks, locked down machines, etc. with no addons, the button is superfluous.

The ability to hide the extensions button was enabled in bug 1964857.
Enterprise policies can set extensions.unifiedExtensions.button.always_visible to false to hide the button by default (which ought work ecause the extensions. prefix is permitted here).

What remains here is the default behavior, when no extensions are installed. Currently about:addons is opened when the button is clicked (and when the Extensions Button is hidden, about:addons is opened instead of the panel being shown when the "Extensions and themes" appmenu item is clicked).

What we are going to do is to show some default content that tells the user why no extensions are displayed, where we distinguish between the following cases:

These mocks are part of the PRD at: https://docs.google.com/document/d/1Cj_VLH4yGAO7AJh2gUbOLXZVG57Yjpw29RryN_03wp0/edit

From the implementation point of view, I'll start with the last one (bug 1814871) because it would be confusing to show the generic "no extensions installed UI" when the user did in fact do so, but is just in private browsing mode.

Blocks: 1975237
@robwu In the context of Tor Browser we discourage user's from installing their own extensions and we hide the NoScript extension toolbar button by default. So we added a patch that hides the unified extensions button when the extensions panel would be empty, should it be opened. I.e. if the user has no extensions installed, or all their extensions are in the toolbar, we hide the unified extensions toolbar button *and* the "Extensions" menu item. We re-show the unified extensions toolbar as necessary. E.g. when an extensions toolbar would overflow. I've attached the patch we apply (minus our special NoScript logic). Since our patch is implemented in a way to avoid conflicts coming from mozilla-central, it is probably not how you would implement it yourselves. But I think you might want to use the same logic.
Attachment #9502071 - Attachment filename: pasted.txt → pasted.diff
Attachment #9502071 - Attachment is patch: true
Attachment #9502071 - Attachment is patch: false
See Also: → 1982225
Assignee: nobody → rob
Status: NEW → ASSIGNED

When bug 1917848 introduced the blocklist messages in the extensions
panel, it added logic to customize the about:addons page that would be
opened if there are no extensions in the panel. It did not include unit
tests for this scenario.

The previous commit in this bug (bug 1778684) defaults to showing the
panel when extensions are disabled, with some explanatory UI. Because
blocklisted add-ons are disabled, this also implies that the
shouldShowBlocklistAttention check in browser-addons.js is now obsolete.
This patch removes that check as a cleanup.

Blocks: 1992983
Pushed by rob@robwu.nl: https://github.com/mozilla-firefox/firefox/commit/40facf4946ea https://hg.mozilla.org/integration/autoland/rev/9a23c570cdad Add info in empty panel when there is a disabled extension r=rpl,fluent-reviewers,bolsson https://github.com/mozilla-firefox/firefox/commit/a748e9d61e04 https://hg.mozilla.org/integration/autoland/rev/df293fdfa6ae Add test coverage for blocklisted addon r=rpl https://github.com/mozilla-firefox/firefox/commit/992283dcd23e https://hg.mozilla.org/integration/autoland/rev/22644b722c56 Show discover button in panel when there are no extensions r=rpl,fluent-reviewers,desktop-theme-reviewers,bolsson,emilio,dao
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch

Release Note Request (optional, but appreciated)
[Why is this notable]: Change in behaviour when a user clicks the Extensions toolbar button
[Affects Firefox for Android]: No
[Suggested wording]: When a Firefox user has no extensions installed, and clicks the Extensions button on the toolbar, they will now see a message explaining how extensions can elevate their browsing experience with links to the Firefox add-ons store.
[Links (documentation, blog post, etc)]:

relnote-firefox: --- → ?

Note added to our 145 beta release notes as well as our draft for our 145 final release notes. I am keeping the relnote flag open until we have shipped the note with 145.0. Thanks.

Added to our final 145 release notes.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: