MaybeCreateDisplayPortInFirstScrollFrameEncountered spends a lot of wasted time in the tabbar in the parent process
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox99 | --- | fixed |
People
(Reporter: tnikkel, Assigned: tnikkel)
References
(Blocks 1 open bug)
Details
Attachments
(1 external file)
See https://bugzilla.mozilla.org/show_bug.cgi?id=1754052#c1 for STR.
The tabbar and nothing in it is WantAsyncScroll so the time is wasted.
| Assignee | ||
Comment 1•4 years ago
|
||
A basic Firefox window has no element that WantAsyncScroll in the parent process, even if there are enough tabs to overflow the tabbar and make it scroll. This is because the underlying element is overflow hidden.
The tabbar is an arrowscrollbox
Which is implemented here
using a <scrollbox> element. These are meant to be programtically scrolled but not user scrolled, hence they are declared overflow hidden here
and they have been that way since the early 2000s, so doesn' seem likely to change. overflow: hidden element do not WantAsyncScroll
If the tabbar structure/name changes I left a comment there pointing out this code.
In a session with a lot of tabs this code can be 15% of the total parent process time to open a new tab. With this patch it's pretty much zero.
Updated•4 years ago
|
Comment 3•4 years ago
|
||
| bugherder | ||
Description
•