Closed
Bug 2081609
Opened 1 month ago
Closed 1 month ago
[customizable menu] Different behavior when fetching addons recommendations fails
Categories
(Firefox for Android :: Menu, defect)
Tracking
()
RESOLVED
FIXED
160 Branch
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: petru, Assigned: petru)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][android-core])
Attachments
(1 external file)
Claude reported issue: if the add-on recommendations come back empty, the row says "No extensions enabled" instead of "Try a recommended extension"; if fetching them fails, you get an expandable row containing only "Discover more extensions.
Neither case is a regression from the legacy menu, and the two menus only differ in the second one. Here's what each does today:
- empty recommendations. In the legacy MenuDialogFragment.getExtensionsMenuItemDescription, the isAllWebExtensionsDisabled check comes before the "Try a recommended extension" one. allWebExtensionsDisabled in MenuState is true when there are no recommendations, no enabled extensions and nothing offered for the page. So the legacy menu also says "No extensions enabled" here. In the new menu, hasNothingToShow in ExtensionsMenuItemProvider gives the same result.
- Fetching fails. The legacy MenuDialogMiddleware only logs the error, so recommendations stay empty and the menu shows the same "No extensions enabled" item. In the new provider, resolveExtensions() returns without setting hasCheckedExtensions, so the row stays in its loading state. That state is expandable and contains only "Discover more extensions". This was a deliberate choice when working on the new menu but wasn't approved and since it's a difference from the legacy menu it should be reverted.
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
When fetching recommendations fails the Extensions row now behaves like
in the legacy menu: it shows "No extensions enabled" as a plain row with
the settings button, and tapping it opens the extensions manager.
Pushed by plingurar@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/4b89b64e7729
https://hg.mozilla.org/integration/autoland/rev/944e0ff91a7d
Update extensions UX when fetching recommendations fails r=android-reviewers,giorga
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
status-firefox160:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•