Installing more than three themes causes built-in themes to get bumped out of the Customize theme selection list
Categories
(Firefox :: Toolbars and Customization, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox66 | --- | unaffected |
firefox67 | --- | unaffected |
firefox68 | + | verified |
People
(Reporter: ke5trel, Assigned: kmag)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(4 files)
Hamburger menu > Customize > Themes initially has three built-in themes and provision for up to six items. Installing more than three additional themes causes the built-in ones to be moved off the bottom of the list, with six themes installed there are no built-in themes in the list at all.
Comment 1•6 years ago
|
||
I can reproduce this as well.
Updated•6 years ago
|
Comment 2•6 years ago
|
||
This should be:
themes.sort((a, b) => importantThemes.has(b.id) - importantThemes.has(a.id));
instead of:
themes.sort((a, b) => importantThemes.has(b) - importantThemes.has(a));
But I'm puzzled why this wasn't caught by this test: https://searchfox.org/mozilla-central/source/browser/components/customizableui/test/browser_1007336_lwthemes_in_customize_mode.js
The order of themes is supposed to be tested from line 140.
Comment 3•6 years ago
|
||
[Tracking Requested - why for this release]:
Feature regressing that I think is on track for removal with 68, but needs to be either removed or fixed up for 68.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Changing the priority to p2 as the bug is tracked by a release manager for the current nightly.
See How Do You Triage for more information
Comment 5•6 years ago
|
||
Kris, is this entire menu going away, or does it now longer list non-builtin themes, or does this just need fixing?
Assignee | ||
Comment 6•6 years ago
|
||
I think I probably screwed up the sorting. We used to show a maximum of six items and always showed the built-in ones at the start of the list, so they never got cropped out.
Assignee | ||
Comment 7•6 years ago
|
||
Assignee | ||
Comment 8•6 years ago
|
||
Comment 9•6 years ago
|
||
bugherder |
Reporter | ||
Comment 10•6 years ago
|
||
I don't see any difference on latest Nightly 68.0a1 (2019-04-26), built-in themes are still being bumped out of the bottom of the list.
Reporter | ||
Comment 11•6 years ago
|
||
(In reply to Kris Maglione [:kmag] from comment #6)
I think I probably screwed up the sorting. We used to show a maximum of six items and always showed the built-in ones at the start of the list, so they never got cropped out.
The old list was static with three built-in themes and three recommended themes.
Updated•6 years ago
|
Comment 12•6 years ago
|
||
(In reply to Kestrel from comment #11)
Created attachment 9061165 [details]
Old theme customization list(In reply to Kris Maglione [:kmag] from comment #6)
I think I probably screwed up the sorting. We used to show a maximum of six items and always showed the built-in ones at the start of the list, so they never got cropped out.
The old list was static with three built-in themes and three recommended themes.
Not if you installed more themes, but yeah, the three built-in themes always appeared first.
Reporter | ||
Comment 13•6 years ago
|
||
(In reply to Tim Nguyen :ntim from comment #12)
Not if you installed more themes, but yeah, the three built-in themes always appeared first.
That Comment 11 screencap is Firefox 66.0.3 with two user themes installed, none of them appear in the Customize list. I installed a further six themes and still none appear in the list.
Comment 14•6 years ago
|
||
(In reply to Kestrel from comment #13)
(In reply to Tim Nguyen :ntim from comment #12)
Not if you installed more themes, but yeah, the three built-in themes always appeared first.
That Comment 11 screencap is Firefox 66.0.3 with two user themes installed, none of them appear in the Customize list. I installed a further six themes and still none appear in the list.
If you install those 3 recommended themes, then you should see what I'm trying to mention especially since recommended themes are removed in FF 68.
Reporter | ||
Comment 15•6 years ago
|
||
(In reply to Tim Nguyen :ntim from comment #14)
If you install those 3 recommended themes, then you should see what I'm trying to mention especially since recommended themes are removed in FF 68.
I see now, recommended themes were added to the bottom of the list. Now installed themes are being added to the top. I also noticed when an installed theme is enabled it moves to the bottom of the list and can get bumped out as well. Ideally the currently enabled theme should always be visible in the list.
Comment 16•6 years ago
|
||
Let's move this to bug 1547573
Updated•6 years ago
|
Updated•5 years ago
|
Comment 17•5 years ago
|
||
Hi,
I tested this issue on Windows 10 with an old Nightly build 68.0a1 (20190330214418) and I was able to reproduce it.
I also tested it using the latest Nightly build 69.0a1 (2019-06-27) and latest Beta version 68.0b13 (20190624133534) and I'm not able to reproduce the issue. Based on this I will mark the bug as Verified.
Description
•