The applications list in Preferences leaves the top entry (and duplicates it) when filtering/sorting
Categories
(Firefox :: Settings UI, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr60 | --- | unaffected |
| firefox65 | --- | unaffected |
| firefox66 | --- | verified |
| firefox67 | --- | verified |
People
(Reporter: csasca, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
Attachments
(1 file, 1 external file)
|
308.63 KB,
image/gif
|
Details |
Affected versions
- Firefox Beta 66.0b13
- Firefox Nightly 67.0a1
Affected platforms
- Windows 10 (x64
- macOS 10.12
- Ubuntu 18.04 (x64)
Steps to reproduce
- Start Firefox
- Go to about:preferences and scroll down to Applications
- Select one application (eg. webcal or irc) and then click on Content Type
Expected result
- The applications are sorted out without issues.
Actual result
- The selection is duplicated in the list.
Regression range
I will come back with a regression asap.
Additional notes
- The issue is not reproducible on Firefox 65.0.2.
| Reporter | ||
Updated•7 years ago
|
| Reporter | ||
Comment 1•7 years ago
|
||
Here's a screencast for the issue.
Comment 2•7 years ago
|
||
Marking as regression since comment 0 says it's not reproducible in Firefox 65.0.2.
Flagging needinfo for the regression range.
Comment 3•7 years ago
|
||
Regression window:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=3a5eb424e65549b3116bed0e76b39aa03003833d&tochange=7e0448a4aa482d253662ecb9209a67ac10c4d256
Regressed by: 7e0448a4aa48 Paolo Amadini — Bug 1516442 - Move "listheader" outside of "richlistbox". r=bgrins
| Assignee | ||
Comment 4•7 years ago
|
||
I bet there's sorting code here that assumes that the first child is the header and ignores it, and when bug 1516442 moved the headers out, it didn't touch that code.
Makes me wonder if other sortable lists are also affected.
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 5•7 years ago
|
||
explicitly leaves 1 item. Oops...
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 6•7 years ago
|
||
Updated•7 years ago
|
Comment 8•7 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 9•7 years ago
•
|
||
Comment on attachment 9049249 [details]
Bug 1533389 - stop leaving an item in the application handler list when sorting/filtering, r?jaws
Beta/Release Uplift Approval Request
- Feature/Bug causing the regression: Bug 1516442
- User impact if declined: a duplicate/mismatching item appears at the top of the application/handler list in the preferences when sorting or filtering it
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: See comment #0
- List of other uplifts needed: n/a
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): The patch in itself is very straightforward (-2/+1 lines of JS), any risk is coming from the fact that we're out of beta runway, and the lack of automated testing here (there are tests, but they're clearly not exercising this code to the point where they noticed the issue...)
- String changes made/needed: None
Updated•7 years ago
|
Comment 10•7 years ago
|
||
Comment on attachment 9049249 [details]
Bug 1533389 - stop leaving an item in the application handler list when sorting/filtering, r?jaws
Seems straightforward; in this case I'm ok with uplifting now for the RC and verifying afterwards.
Comment 11•7 years ago
|
||
| bugherder uplift | ||
Comment 12•7 years ago
|
||
Hi Gijs, we're porting this to TB in bug 1533650. To me the "obvious" solution would have been to change > 1 to >= 1. So this._list.textContent = ""; is the quicker and better way? Is there other code that clears lists the "traditional" way?
| Assignee | ||
Comment 13•7 years ago
|
||
(In reply to Jorg K (GMT+1) from comment #12)
Hi Gijs, we're porting this to TB in bug 1533650. To me the "obvious" solution would have been to change
> 1to>= 1. Sothis._list.textContent = "";is the quicker and better way?
It's slightly faster, and shorter to write.
Is there other code that clears lists the "traditional" way?
Probably, but I wanted to fix this bug, not change lots of old, working code.
Updated•7 years ago
|
Updated•7 years ago
|
| Reporter | ||
Comment 14•7 years ago
|
||
The issue is no longer reproducible on Firefox 66.0b15 build from treeherder (20190310020310) and latest Nightly 67.0a1 (2019-03-11). Tests were performed under Windows 10 (x64), Ubuntu 18.04 (x64) and macOS 10.12.
Description
•