[wayland] Maximizing/restoring window has become delayed with large numbers of tabs
Categories
(Firefox :: Tabbed Browser, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr102 | --- | unaffected |
firefox106 | --- | unaffected |
firefox107 | --- | unaffected |
firefox108 | --- | verified |
firefox109 | --- | verified |
People
(Reporter: ke5trel, Assigned: emilio)
References
(Blocks 2 open bugs, Regression)
Details
(Keywords: perf, regression)
Attachments
(3 files)
STR:
- Start with
MOZ_ENABLE_WAYLAND=1
on Ubuntu 22.04. - Restore a window session with 2000 tabs.
- Maximize the window.
Expected:
The window maximizes immediately.
Actual:
The window maximizes after a delay, the length of the delay increases with the number of tabs. It does not happen with the native system titlebar enabled (browser.tabs.inTitlebar = 0
) or with XWayland.
Performance profile:
https://share.firefox.dev/3zgABcV
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=894ad5982bff38a17909b61323273417a4662650&tochange=47e9c3d582b3a791cdf7914588ff15965cc8506e
Regressed by Bug 1795804.
Comment 1•2 years ago
|
||
:emilio, since you are the author of the regressor, bug 1795804, could you take a look? Also, could you set the severity field?
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 2•2 years ago
|
||
Only dialog elements can have backdrops. The current selector right now
acts like a global selector which causes a massive restyle when
maximizing / restoring the window.
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
Some appearance changes like from -moz-window-titlebar to
-moz-window-titlebar-maximized shouldn't really cause layout of the
whole browser area.
Depends on D160354
Assignee | ||
Comment 4•2 years ago
|
||
Well, that's kind of expected I suspect. We now draw with the updated styles, all that work was happening after maximizing... But most of that work seems it could be faster.
Comment 6•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Comment 7•2 years ago
|
||
Reproduced the issue on Firefox 108.0a1 (2022-10-26) on Ubuntu 22.04 Wayland by following the STR from Comment 0.
The issue is fixed on Firefox 108.0a1 (2022-11-01) and 109.0a1 (2022-11-23) on the same system and the Maximize action is much faster.
Description
•