[wayland] Bookmarks popup no longer grows to fit contents
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr78 | --- | unaffected |
| firefox88 | --- | unaffected |
| firefox89 | --- | unaffected |
| firefox90 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
(Blocks 2 open bugs, Regression)
Details
(Keywords: regression)
Attachments
(4 files)
This is a recent regression. Press Ctrl+D in any page, and when the panel opens click the arrow next to "other bookmarks". The content grows, we make the panel scrollable, but only vertically.
I tried to bisect but it came down to a nonsense commit. However, nightly 2021-04-26 is good, and 2021-04-27 is bad, so the pushlog is:
The first build between those gets skipped for some reason, so that makes me suspect bug 1707577. Will try to confirm manually.
| Assignee | ||
Comment 1•4 years ago
|
||
Ah, reverting bug 1707209 fixes this.
Updated•4 years ago
|
Comment 2•4 years ago
|
||
Interesting - on what backend (Wayland/X11) is that? And does your setup use scaling? The patch should only affect some rounding cases, and even there it should only have changed if scale > 1.
| Assignee | ||
Comment 3•4 years ago
|
||
This only happens with MOZ_ENABLE_WAYLAND=1, and I haven't touched any prefs, this repros on a clean profile. I can attach a recording.
I have a HiDPI screen on Gnome (Fedora 34), with the monitor scale being 2x. What I see is that SetSizeConstraints gets a suitable size, but then the expose event doesn't respect it.
| Assignee | ||
Comment 4•4 years ago
|
||
| Assignee | ||
Comment 5•4 years ago
|
||
| Assignee | ||
Comment 6•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Comment 7•4 years ago
|
||
bad.log has:
[Parent 266226: Main Thread]: D/Widget nsWindow::ApplySizeConstraints [7f2fa05df800] min size 497 142
[Parent 266226: Main Thread]: D/Widget nsWindow::ApplySizeConstraints [7f2fa05df800] max size 8238 8238
[Parent 266226: Main Thread]: D/Widget nsWindow::OnSizeAllocate [7f2f5b3f8c00] 0,0 -> 351 x 536
good.log has:
[Parent 268947: Main Thread]: D/Widget nsWindow::ApplySizeConstraints [7f16107df800] min size 496 141
[Parent 268947: Main Thread]: D/Widget nsWindow::ApplySizeConstraints [7f16107df800] max size 8238 8238
[Parent 268947: Main Thread]: D/Widget NativeMoveResizeWaylandPopupCallback [7f15ca9e9400] flipped_x 1 flipped_y 0
[Parent 268947: Main Thread]: D/Widget flipped_rect x=277 y=93 width=349 height=534
[Parent 268947: Main Thread]: D/Widget final_rect x=277 y=93 width=349 height=534
[Parent 268947: Main Thread]: D/Widget orig mBounds x=554 y=186 width=698 height=1068
[Parent 268947: Main Thread]: D/Widget new mBounds x=554 y=186 width=698 height=1068 x_parent=0 y_parent=0
Comment 8•4 years ago
|
||
Set release status flags based on info from the regressing bug 1707209
| Assignee | ||
Comment 9•4 years ago
|
||
The code before was effectively flooring (using integer division).
We can't ceil(), we already add the scale with + scale - 1 to "ceil".
It seems GTK (at least on Wayland) chokes when the pixels are not a
multiplier of the scale factor.
It's not quite rounding up, what these functions do... But anyhow this
restores the pre-existing behavior.
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Comment 11•4 years ago
|
||
| bugherder | ||
Description
•