Strange alignment of container buttons in preferences
Categories
(Firefox :: Settings UI, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr68 | --- | unaffected |
| firefox70 | --- | unaffected |
| firefox71 | --- | unaffected |
| firefox72 | blocking | verified |
| firefox73 | --- | verified |
People
(Reporter: ntim, Assigned: bgrins)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
|
94.81 KB,
image/png
|
Details | |
|
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
"Preferences" and "Remove" buttons are weirdly aligned.
STR: visit about:preferences#containers
| Reporter | ||
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=a066931fc331c4511871812cffa4cab7de7169f6&tochange=c59883012b35833cca413bdd5f660b886d912072
| Reporter | ||
Comment 3•5 years ago
|
||
Removing https://searchfox.org/mozilla-central/source/browser/components/preferences/in-content/containers.js#67 would fix this, but it'd be nice to check if anything else is affected by this.
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Comment 5•5 years ago
|
||
Oh, I see what's wrong. The "Rewrite [align="left"] to [align="start"] and [align="right"] to [align="end"]" patch is wrong.
align="left" maps to pack="start" for horizontal boxes (-moz-box-orient: horizontal) and align="start" for vertical boxes.
Similarly, align="right" maps to pack="end" for horizontal boxes and align="end" for vertical boxes.
See: https://hg.mozilla.org/mozilla-central/rev/c58aa1b00988#l1.89
It would be nice to re-review all the files changed in https://hg.mozilla.org/mozilla-central/rev/c59883012b35 to make sure nothing else regressed.
Comment 6•5 years ago
|
||
[Tracking Requested - why for this release]:
User-visible regression that we'll need to fix for release.
| Assignee | ||
Comment 7•5 years ago
|
||
(In reply to Tim Nguyen :ntim from comment #5)
Oh, I see what's wrong. The "Rewrite [align="left"] to [align="start"] and [align="right"] to [align="end"]" patch is wrong.
align="left"maps topack="start"for horizontal boxes (-moz-box-orient: horizontal) andalign="start"for vertical boxes.
Similarly,align="right"maps topack="end"for horizontal boxes andalign="end"for vertical boxes.See: https://hg.mozilla.org/mozilla-central/rev/c58aa1b00988#l1.89
It would be nice to re-review all the files changed in https://hg.mozilla.org/mozilla-central/rev/c59883012b35 to make sure nothing else regressed.
Thanks, I'll have a look.
I guess the same issue could have happened with the change from align="top" -> align="start" in Bug 1599283, but the only elements that got updated in https://hg.mozilla.org/integration/autoland/rev/ad75d8bb97ca are horizontally aligned so it uses the align attribute for valignment: https://hg.mozilla.org/mozilla-central/rev/c58aa1b00988#l1.89.
| Assignee | ||
Comment 8•5 years ago
|
||
(In reply to Brian Grinstead [:bgrins] from comment #7)
I guess the same issue could have happened with the change from
align="top"->align="start"in Bug 1599283, but the only elements that got updated in https://hg.mozilla.org/integration/autoland/rev/ad75d8bb97ca are horizontally aligned so it uses thealignattribute for valignment: https://hg.mozilla.org/mozilla-central/rev/c58aa1b00988#l1.89.
I think I misread this. align=top would have hit the early return at https://hg.mozilla.org/mozilla-central/rev/c58aa1b00988#l1.77 so pack would never be used.
| Assignee | ||
Comment 9•5 years ago
|
||
- align="left" maps to pack="start" for horizontal boxes and align="start" for vertical boxes.
- align="right" maps to pack="end" for horizontal boxes and align="end" for vertical boxes.
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
| bugherder | ||
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Verified as fixed on Firefox 73.0a1 (2019-12-03) on Windows 10 x 64, Mac OS X 10.14 and on Ubuntu 18.04 x64.
Updated•5 years ago
|
| Reporter | ||
Comment 13•5 years ago
•
|
||
Comment on attachment 9112987 [details]
Bug 1600281 - Rewrite horizontal boxes that were incorrectly translated from align=right to align=end to use pack=end
Beta/Release Uplift Approval Request
- User impact if declined: Various elements are misaligned in the UI (attachment 9112522 [details], attachment 9111390 [details])
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?:
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Straightforward XUL patch
- String changes made/needed:
| Reporter | ||
Comment 14•5 years ago
|
||
This might be worth porting to TB, summary is in comment 5 :)
Comment 15•5 years ago
•
|
||
Thx, Richard already noticed and has a patch in bug 1600928.
Updated•5 years ago
|
Comment 16•5 years ago
|
||
Comment on attachment 9112987 [details]
Bug 1600281 - Rewrite horizontal boxes that were incorrectly translated from align=right to align=end to use pack=end
fix a new regression in preferences, verified in 73, approved for 72.0b3
Comment 17•5 years ago
|
||
| bugherder uplift | ||
Comment 18•5 years ago
|
||
Verified as fixed on Firefox 72.0b3 (Build ID: 20191204104712) on Windows 10 x 64, Mac OS X 10.14 and on Ubuntu 18.04 x64.
Comment 19•5 years ago
|
||
Please specify a root cause for this bug. See :tmaity for more information.
Updated•5 years ago
|
Updated•3 years ago
|
Description
•