Closed Bug 1400379 Opened 7 years ago Closed 7 years ago

No badge and misaligned labels in about:addons

Categories

(Toolkit :: Add-ons Manager, defect, P5)

57 Branch
defect

Tracking

()

VERIFIED FIXED
mozilla58
Tracking Status
firefox-esr52 --- unaffected
firefox55 --- unaffected
firefox56 --- unaffected
firefox57 --- verified
firefox58 --- verified

People

(Reporter: Oriol, Assigned: mstriemer)

References

Details

(Keywords: regression)

Attachments

(5 files)

1. Go to https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/versions/
2. Install the 2nd version
3. Set automatic updates of uBlock to Off
4. Check for updates

Result: An "Available Updates" category appears at the left.
Expected: it should have a badge with the number of available updates.
Priority: -- → P5
Assignee: nobody → mstriemer
Status: NEW → ASSIGNED
Hi Oriol! 55 and 56 versions are unaffected, right?
Flags: needinfo?(oriol-bugzilla)
Yes, this was caused by bug 1393099, which only affected Firefox 57.
Flags: needinfo?(oriol-bugzilla)
Attached image cropped-label.png
Duped bug 1400813 onto this one since they're both for regressions from bug 1393099. See 1393099 comment 22 for more info on the misaligned label.

The best solution I can come up with for now is to crop the label. The wrapping is overly aggressive and causes "Available Updates" to be on two lines in English when it looks like it should fit. Also the code expects "badgeCount" to be set on the element which would make putting the badge back in with wrapping the text a bit complicated.

It might be nice to make the sidebar a bit wider, if that's acceptable I can update my patch.
Summary: No badge with the number of available updates in about:addons → No badge and misaligned labels in about:addons
Comment on attachment 8910104 [details]
Bug 1400379 - Backed out changeset e0fe9ab6917b

https://reviewboard.mozilla.org/r/181580/#review187392
Attachment #8910104 - Flags: review?(rhelmer) → review+
Comment on attachment 8910105 [details]
Bug 1400379 - Crop category labels in about: pages

https://reviewboard.mozilla.org/r/181582/#review187394
Attachment #8910105 - Flags: review?(rhelmer) → review+
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/a16272acfb61
Backed out changeset e0fe9ab6917b r=rhelmer
https://hg.mozilla.org/integration/autoland/rev/78a56e071468
Crop category labels in about: pages r=rhelmer
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/a16272acfb61
https://hg.mozilla.org/mozilla-central/rev/78a56e071468
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Comment on attachment 8910104 [details]
Bug 1400379 - Backed out changeset e0fe9ab6917b

Approval Request Comment
[Feature/Bug causing the regression]: This is a regression from bug 1393099.
[User impact if declined]: This results in unnecessary wrapping of text and the removal of the number of updates that are available from the label.
[Is this code covered by automated tests?]: There are no automated tests for how this text wraps. Testing was done manually and the regression was noted in bug 1393099 comment 22 and here.
[Has the fix been verified in Nightly?]: I have manually verified this in Nightly.
[Needs manual test from QE? If yes, steps to reproduce]: See comment 0.
[List of other uplifts needed for the feature/fix]: The second patch in this bug (f471d18f98131c18fc4569edc88e45ec73d9dc8d).
[Is the change risky?]: This is low risk change.
[Why is the change risky/not risky?]: It is backing out the more complicated changeset and replacing is with a XUL change to trim the string with an ellipsis instead.
[String changes made/needed]: none
Attachment #8910104 - Flags: approval-mozilla-beta?
Comment on attachment 8910105 [details]
Bug 1400379 - Crop category labels in about: pages

See above.
Attachment #8910105 - Flags: approval-mozilla-beta?
Mark, Andy marked 57 as wontfix and P5. Why should we take the uplift? Thanks
Flags: needinfo?(mstriemer)
I was working on the assumption that it wasn't important to uplift. As it turns out its so small that it might  a good regression to fix since it affects the user interface that some situations might trigger. I'll take your recommendation either way Sylvestre.
Attached image number of updates.PNG
This bug is verified on Firefox 58.0a1 (20170927100120) under Windows 10 64-bit and Mac OS X 10.12.3.

The label on the "Available Updates" section is displayed with the correct number of updates.

Please see the attached screenshot.
Status: RESOLVED → VERIFIED
Comment on attachment 8910104 [details]
Bug 1400379 - Backed out changeset e0fe9ab6917b

Polish the l&f, taking it.
Should be in 57b4. GTB later today.
Attachment #8910104 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #8910105 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
FYI, marking bugs you want uplifted as "wontfix" is a really good way for them to get overlooked later.
Attached image updates badge.PNG
This bug is verified on Firefox 57.0b4 (20170928180207) under Windows 10 64-bit and Mac OS X 10.12.3.

The label on the "Available Updates" section is displayed with the correct number of updates.

Please see the attached screenshot.
Flags: needinfo?(mstriemer)
Depends on: 1418064
See Also: → 1535916
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: