22.35 - 5.05% tresize + 6 more (Linux, OSX, Windows) regression on Tue September 8 2026
Categories
(Firefox :: Address Bar, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | unaffected |
| firefox155 | --- | unaffected |
| firefox156 | --- | unaffected |
| firefox157 | + | wontfix |
| firefox158 | + | fixed |
People
(Reporter: performance-sheriff-bot, Assigned: dao)
References
(Regression)
Details
(4 keywords, Whiteboard: [sng])
Attachments
(1 obsolete file)
Perfherder has detected a talos performance regression from push 64083d73a227379dfdc0cfe5dfd529504530a02b. As author of one of the patches included in that push, we need your help to address this regression.
Please acknowledge, and begin investigating this alert within 3 business days, or the patch(es) may be backed out in accordance with our regression policy.
| Regression | Test | Platform | Options | Absolute values [old vs new] |
|---|---|---|---|---|
| 22% | tresize (doc) | macosx1470-64-shippable | e10s fission stylo webrender-sw | 6.85 ms -> 8.38 ms |
| 15% | tresize (doc) | linux1804-64-shippable-qr | e10s fission stylo webrender-sw | 20.79 ms -> 23.81 ms |
| 14% | tp5o_scroll_paint_skip (doc) | linux2404-64-shippable | e10s fission stylo webrender-sw | 0.82 -> 0.94 |
| 13% | tp5o_scroll (doc) | linux2404-64-shippable | e10s fission stylo webrender-sw | 1.94 -> 2.18 |
| 13% | tresize (doc) | windows11-64-24h2-shippable | e10s fission stylo webrender-sw | 6.87 ms -> 7.74 ms |
| 9% | tart (doc) | linux2404-64-shippable | e10s fission stylo webrender-sw | 2.45 -> 2.67 |
| 5% | tart (doc) | linux2404-64-shippable | e10s fission stylo webrender | 2.24 -> 2.35 |
Support & Actionable Steps
For questions, please contact fbilt@mozilla.com. You can also find help on Slack (#perf-help) or Matrix (#perftest).
Action guide details:
- See the guide to handling regression bugs for investigation steps.
- Review the alert summary for affected tests, graphs, and comparisons.
- Check the PerfCompare results.
- Tests on Try: Run all tests using
./mach try perf --alert 52724(See documentation link for details). - Test locally: To run the tests locally use
./mach perftest 52724 - Profiling jobs: Trigger jobs from Treeherder job view or request them from fbilt@mozilla.com.
Comment 1•2 months ago
|
||
Set release status flags based on info from the regressing bug 2022527
Comment 2•2 months ago
|
||
Set release status flags based on info from the regressing bug 2022527
Updated•2 months ago
|
Comment 3•2 months ago
•
|
||
Some Claude-based findings, to be confirmed:
Anchor positioning layout recalc on urlbar open/close or when any ancestor reflows
CSS anchor positioning requires an extra layout pass. The spec requires that anchor-positioned elements be resolved after normal layout (because the anchor's position is only known post-layout). So now, on every layout — resize, scroll-triggered reflow, animation — the browser must do a second pass to resolve the urlbar view's anchor position. This happens even when the urlbar is closed, as long as the anchored popover element exists in the DOM. The regression isn't about the urlbar being used — it's about the anchor positioned element taxing every layout operation globally. That's why three unrelated tests all regress: the extra layout pass is a constant overhead on all reflows, not specific to urlbar interaction.
Updated•2 months ago
|
| Assignee | ||
Comment 4•2 months ago
|
||
(In reply to Marco Bonardo [:mak] from comment #3)
Some Claude-based findings, to be confirmed:
Anchor positioning layout recalc on urlbar open/close or when any ancestor reflows
CSS anchor positioning requires an extra layout pass. The spec requires that anchor-positioned elements be resolved after normal layout (because the anchor's position is only known post-layout). So now, on every layout — resize, scroll-triggered reflow, animation — the browser must do a second pass to resolve the urlbar view's anchor position. This happens even when the urlbar is closed, as long as the anchored popover element exists in the DOM. The regression isn't about the urlbar being used — it's about the anchor positioned element taxing every layout operation globally. That's why three unrelated tests all regress: the extra layout pass is a constant overhead on all reflows, not specific to urlbar interaction.
Maybe I'm missing something but I think bug 2069413 and bug 2065901 would have addressed this. I can dig a bit deeper.
| Assignee | ||
Comment 5•2 months ago
|
||
Linux went back to baseline: https://treeherder.mozilla.org/perfherder/graphs?timerange=1209600&series=autoland,4767341,1,1
And for macOS we have: https://bugzilla.mozilla.org/show_bug.cgi?id=2065901#c12
| Assignee | ||
Comment 6•2 months ago
•
|
||
[Claude] Correcting comment 5: only linux1804 tresize came back, and bug 2071179 is what brought it back. The autoland series for that signature steps 23.55 -> 20.13 at push 629069ee2ae4, and is already at 20.20 before the reverts of bug 2066084 and bug 2067338 (preserve-3d display list wrapping), which move it to 20.38. Perfherder filed improvement alert 52829 on the reverts push instead.
The other six are still at their regressed level. Autoland medians, 09-04..09-08 vs 09-14..now:
- macOS tresize swr: 6.87 -> 8.51
- win11 tresize swr: 6.88 -> 7.77
- linux2404 tp5o_scroll: 1.97 -> 2.33
- linux2404 tp5o_scroll_paint_skip: 0.84 -> 0.94
- linux2404 tart swr: 2.47 -> 2.60
- linux2404 tart wr: 2.25 -> 2.35
Bug 2065901 doesn't cover the macOS number: it improved that signature by 10.75% on 09-04 (alert 52671), which is where the 6.87 baseline comes from. 8.51 is worse than the 7.63 that preceded it.
The regressing change is bug 2069413, not bug 2022527. Try, n=20 per side, tresize swr:
| macOS | win11 | linux1804 | |
|---|---|---|---|
| parent -> + bug 2069413 | 6.85 -> 8.52 (+24.4%) | 6.93 -> 7.64 (+10.3%) | 21.66 -> 23.47 (+8.4%) |
| -> + bug 2022527 | 8.52 -> 7.35 (-13.7%) | +0.02% | +0.31% |
Within bug 2069413 it is the first commit, "Show the popover for the duration of the breakout extension": before it #urlbar sat in the top layer permanently, after it the bar is in-flow in #nav-bar except while extended. (The macOS 7.35 is below autoland's post-push 8.4, so the last two commits of the push add some of it back; a try leg measuring those is still running.)
| Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
| Assignee | ||
Comment 7•2 months ago
|
||
Bug 2071179 may have fixed the regression on Linux. Still investigating if there's real link or if it's a coincidental unrelated win.
| Assignee | ||
Comment 8•2 months ago
•
|
||
[Claude] The cause on win11 is the Nova toolbox gradient, and the first commit of bug 2069413 ("Show the popover for the duration of the breakout extension") is what makes it expensive.
Bug 2027859 added it. --toolbox-background-gradient is a 96deg gradient with two color-mix() stops at 50% transparency; the same patch puts it on body via --toolbox-background-image under @media -moz-pref("browser.nova.enabled") in browser-shared.css, consumed at :root:not([theme-image-in-toolbox]) body. Dropping that one declaration is the "no gradient" diagnostic below.
tresize win11 swr, n=20 per side, every leg carrying bug 2071179:
| median | vs parent | |
|---|---|---|
| parent | 6.92 | |
| + first commit | 7.73 | +11.74% |
| + first three commits | 7.59 | +9.79% |
| push tip | 7.65 | +10.65% |
| no gradient, parent | 6.77 | |
| no gradient, tip | 6.98 | +3.17% |
The first commit alone carries the whole regression and the rest add nothing. Removing the gradient takes the delta from +10.65% to +3.17%: the gradient costs 0.15 ms on the parent and 0.67 ms on the tip, 4.5x more once #urlbar is out of the top layer.
Gecko-profile diff, win11 talos-chrome-swr, parent against tip: Renderer is the only thread that rises, +328 ms (+19.5%), with GeckoMain, Compositor, WRSceneBuilder and WRRenderBackend all flat or faster. Inside it commitLinearGradientFromStops<1,0> goes 12.5 -> 202.9 ms and draw_quad 208.5 -> 270.1. The chain is draw_alpha_batch_container -> ps_quad_gradient_frag::draw_span_RGBA8 -> commitLinearGradientFromStops, so the gradient is rasterized per frame in the alpha batch rather than served from a cached tile.
That is also why this is win11 and macOS only. Bug 2059160 overrode the token to image(transparent) under a native theme (forced-colors gets the same treatment), so the real gradient applies only where neither holds. -moz-native-theme follows browser.theme.native-theme, which StaticPrefList.yaml defaults to true under MOZ_WIDGET_GTK, so Linux paints no toolbox gradient at all.
linux2404 therefore has a second mechanism, but the same commit causes it. tp5o_scroll linux2404 swr, one job per leg on four different machines:
| tp5o_scroll | paint_skip | |
|---|---|---|
| parent | 1.97 | 0.84 |
| + first commit | 2.20 | 0.95 |
| + first three commits | 2.30 | 0.96 |
| push tip | 2.17 | 0.95 |
Two things are open. Whether restoring a picture-cache slice for #urlbar recovers the win11 +3.17% residual and the linux2404 cost, which is on try now. And who owns the gradient, since a full-window translucent gradient is expensive to rasterize under software WebRender.
The macOS legs for the same matrix are still queued.
| Assignee | ||
Comment 9•2 months ago
|
||
(In reply to Dão Gottwald [:dao] from comment #8)
The cause on win11 is the Nova toolbox gradient, and the first commit of bug 2069413 ("Show the popover for the duration of the breakout extension") is what makes it expensive.
Bug 2027859 added it.
--toolbox-background-gradientis a 96deg gradient with twocolor-mix()stops at 50% transparency; the same patch puts it onbodyvia--toolbox-background-imageunder@media -moz-pref("browser.nova.enabled")inbrowser-shared.css, consumed at:root:not([theme-image-in-toolbox]) body. Dropping that one declaration is the "no gradient" diagnostic below.
Hey emilio, do you have ideas for how we could make either bug 2069413 or bug 2027859 less taxing?
| Assignee | ||
Comment 10•2 months ago
•
|
||
[Claude] The macOS results are in, and the gradient is the whole macOS regression. macmini-r8-32 ran both the tip and the no-gradient tip: tresize swr 8.35 -> 6.70, against 8.42 for that machine on autoland this week. The no-gradient parent-to-tip delta is -1.5%.
The per-commit legs for macOS, each on a different mini:
| median | vs parent | |
|---|---|---|
| parent | 6.24 | |
| + first commit | 7.38 | +18.4% |
| + first three commits | 8.41 | +34.8% |
| push tip | 8.35 | +33.9% |
The later commits look like they add here where they add nothing on win11, but the no-gradient A/B says whatever they add, they add through the gradient.
Two corrections to comment 8:
- "rasterized per frame in the alpha batch rather than served from a cached tile" does not hold. Both legs draw the gradient through the same
draw_alpha_batch_containerchain, and the parent's 12.5 ms is not near-zero. The difference is how much gradient shades per frame. - The picture-cache slice is refuted at n=20, but less cleanly than I implied: the barrier gives win11 tresize 7.76 against 7.65 and linux2404 tp5o_scroll 2.19 against 2.17, and it does fire. It also adds a full-window Alpha surface neither leg has, so a recovery would have to be cancelled by that surface's cost to read flat.
Two candidates are out. Locally I can price the gradient's rasterization per resize -- 0.000 ms with the declaration dropped, 0.15 ms with it -- so these are measured, though the local build does not reproduce the tip's amplification:
- Putting the gradient back on
#navigator-toolbox, which is what bug 2069090 moved it off, does not help: 0.15 ms/resize onbodyat 1025x1025 against 0.15 ms/resize on the toolbox at 1025x85. Growing the toolbox to 1025x500 costs 1.80 ms/resize, so the cost is strongly area-driven and thebodygradient is already clipped to about a toolbar's worth of pixels per frame. - Flattening the two
color-mix(... 50%, transparent)stops to opaque is 14x worse, 2.10 ms/resize: the translucent gradient takes swgl's fastcommitLinearGradientFromStopsspan path, and the opaque one falls off it ontops_quad_gradient_frag::swgl_drawSpanRGBA8plusfindGradientStopPair.
So the gradient is on swgl's best path and already minimally sized on screen. What is left is how much of it re-shades per frame.
Comment 11•2 months ago
|
||
(In reply to Dão Gottwald [:dao] from comment #9)
Hey emilio, do you have ideas for how we could make either bug 2069413 or bug 2027859 less taxing?
More of a question for the WebRender folks, but my guess is that rasterizing a gradient in software of the whole window size is just not cheap, and not sure we realistically want to optimize for the window resize case?
Not sure also if we have optimizations for opaque gradients. These gradients are semi-transparent but the only thing behind them is the opaque background. Can we make them opaque altogether? But not sure that'd really help much.
| Assignee | ||
Comment 12•2 months ago
•
|
||
(In reply to Emilio Cobos Álvarez [:emilio] from comment #11)
More of a question for the WebRender folks, but my guess is that rasterizing a gradient in software of the whole window size is just not cheap, and not sure we realistically want to optimize for the window resize case?
I tend to agree we shouldn't over-optimize for the window resize case, but note there's also a tab animation and scroll regression on Linux which seems to be solely from bug 2069413.
Not sure also if we have optimizations for opaque gradients. These gradients are semi-transparent but the only thing behind them is the opaque background. Can we make them opaque altogether? But not sure that'd really help much.
In fact it seems like it would hurt (comment #10):
- Flattening the two
color-mix(... 50%, transparent)stops to opaque is 14x worse, 2.10 ms/resize: the translucent gradient takes swgl's fastcommitLinearGradientFromStopsspan path, and the opaque one falls off it ontops_quad_gradient_frag::swgl_drawSpanRGBA8plusfindGradientStopPair.
I'll keep digging a bit longer but I may have to kick this over to WebRender if I don't find a viable front-end workaround, short of backing out bug 2069413 which I'd rather not, and/or removing the Nova gradients which I expect is a no-go from a UX and product perspective.
Comment 13•2 months ago
|
||
find_scroll_root falls back to the outermost explicit scroll frame when no
scrollable root of a reasonable size exists, and the slice builder then cuts a
new picture cache slice whenever primitives under such a root follow root-space
content. For a scroll frame with a zero scroll range this only splits static
content: nothing can scroll, so the slice buys nothing, while everything after
it (including any opaque backdrop) lands in a different slice from the content
before it and stops occluding it.
This is what regressed tresize on software WebRender once the urlbar left the
top layer: the urlbar input's scroll frame has an active scroll layer but no
range as soon as its value fits, so a slice boundary appears in the middle of
the toolbar between the Nova body gradient and the opaque browser background.
The gradient then loses depth-test culling and is shaded over the whole window
on every frame.
Keep find_scroll_root and its clip ownership as they are and only skip the
slice cut when the scroll root has no scrollable range. The
underlay-mask-on-translucent-slice reftest relied on a scroll-frame with the
default zero range to obtain its slice; give it the content size of the image
it contains so it keeps testing a compositor surface on a translucent slice.
Comment 14•2 months ago
•
|
||
Attached a prototype that I think might fix this issue.
Perhaps those who know more about the bug in question could do some testing either with this patch or the binary artifacts from https://treeherder.mozilla.org/jobs?repo=try&revision=77bb29b814cac145c5d20b0ceb5c7a48bd02cc0c to see if it helps?
| Assignee | ||
Comment 15•2 months ago
|
||
The linux2404 tp5o_scroll and tart regressions have a different cause from the gradient. Once the URL text overflows the urlbar input, the chrome's picture cache slice is split at the input for the rest of the session, and software WebRender blends an extra full-window alpha layer every frame. Before this regression range the focused urlbar was a top-layer popover, so the split stayed inside the popover's own slice.
Per-frame compositor counters on try (parent https://treeherder.mozilla.org/jobs?repo=try&revision=a8374b82acba, tip https://treeherder.mozilla.org/jobs?repo=try&revision=c72e8d9e7d38): alpha pixels composited per frame are x0.96-0.98 on the three tp5o_scroll pages before the first URL that overflows and x1.38-1.62 (median 1.58) on the 48 pages after it, with opaque pixels flat. tart reaches the same state from its second cycle on, because the DPI2 subtests halve the CSS width.
Filed as bug 2072795 with the mechanism and a local reproduction. Either the first-encountered displayport rule or the WebRender slice builder can fix it; there is no front-end workaround short of putting the urlbar back in the top layer.
| Assignee | ||
Comment 16•2 months ago
|
||
Oops, mid-aired with Glenn. D326803 addresses the slice cut from bug 2072795, so it might be better attached there. One gap: it skips the cut only while the input's scroll range is zero. The displayport stays once the URL has overflowed, and any URL that still overflows leaves the range non-zero, so the cut remains on tp5o_scroll's longer URLs and on tart's DPI2 subtests. Gating the fallback on MIN_SCROLL_ROOT_SIZE as well, or leaving single-line text inputs out of the first-encountered displayport rule, would cover both states. I'm try-testing D326803 and both variants with the per-frame counters on linux2404, plus tresize on win11/macOS to check the gradient-culling explanation; results in a few hours.
| Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
| Assignee | ||
Comment 17•2 months ago
•
|
||
Slice split: results in bug 2072795 comment 6. Skipping the slice at the urlbar input's scroll root removes the split on every tp5o_scroll page and tart subtest and brings win11 tresize back to the parent (7.2 vs. 8.2 on autoland, n=3); the first WebRender variant did the same on macOS (6.75 vs. tip 8.35). D326803 as posted only covers pages whose URL fits and doesn't move tresize.
tart's simple-open-DPI1.error stall is separate: 45-47 on the tip with every candidate, 17-19 on the parent. Bisecting this bug's range puts it on "Put only the view in the popover, anchored to the input container" (16-17 before, 44-48 from there on). It went away on autoland on Sept 15 inside push 99f6d3d31f06 (Glean v70, bug 2047566; app-services/UniFFI 0.32, bug 2068665): linux2404 tart swr stepped from 2.66 to 2.33, below the 2.45 pre-regression level, and with the WebRender patch on today's autoland the subtest reads 18. tresize win11/macOS and tp5o_scroll are still regressed at tip, so bug 2072795 stays the fix.
| Assignee | ||
Comment 18•2 months ago
|
||
tl;dr: bug 2072795 should take care of the remaining tresize and tp5o_scroll regressions. tart recovered on its own on autoland, and linux1804 tresize was fixed by bug 2071179. A few percent may remain on win11 tresize and tp5o_scroll; we'd see from the improvement alerts once that patch lands.
| Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
| Assignee | ||
Comment 19•2 months ago
|
||
For 157, I don't know if we'd consider uplifting bug 2072795 at this point. Glenn, do you have an opinion on this?
Comment 20•2 months ago
|
||
The patch landed in nightly and beta is affected.
:dao, please make an uplift decision for beta:
- Nominate the patch for beta uplift approval if the fix should be included in this release, or
- Set
status-firefox157towontfixif the fix can wait for the next release.
See Requesting an Uplift for documentation on how to request an uplift.
For more information, please visit BugBot documentation.
Updated•2 months ago
|
| Assignee | ||
Updated•2 months ago
|
Updated•2 months ago
|
Description
•