Closed Bug 2071179 Opened 2 months ago Closed 2 months ago

6.87% Heap Unclassified (Linux) regression on Mon September 7 2026

Categories

(Firefox :: Theme, defect)

defect

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox-esr153 --- unaffected
firefox156 --- unaffected
firefox157 --- fixed
firefox158 --- fixed

People

(Reporter: performance-sheriff-bot, Assigned: emilio)

References

(Regression)

Details

(Keywords: perf, perf-alert, regression)

Attachments

(2 external files)

Perfherder has detected a awsy performance regression from push 711a99f8d2432f64b3c9d78049a85c5d3aa0affa. 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]
7% Heap Unclassified (doc) linux2404-64-shippable fission tp6 425,090,966.53 bytes -> 454,295,856.27 bytes

Support & Actionable Steps

For questions, please contact afinder@mozilla.com. You can also find help on Slack (#perf-help) or Matrix (#perftest).

Action guide details:

Flags: needinfo?(emilio)

Set release status flags based on info from the regressing bug 2069090

Is the regression linux only? It's rather surprising.

This is a path that we used before nova, and the graph is super noisy... Do we know what caused it to stop being so bi-modal?

Flags: needinfo?(afinder)

Also do you know if this test is using the nova default theme or the system theme? The system theme just uses a transparent image so I'm surprised it would cause this...

The image() function is incorrectly falling back to a blob image.

Use an exclusive switch so that it doesn't happen again. The only thing
we don't support in the WR path as far as I can tell is -moz-element().

-moz-symbolic-icon() works just like url(), and all the cases for url()
where we return false there's basically nothing to draw. cross-fade() is
not implemented in either path so let's return true for now so that we
intentionally switch to false if needed.

I don't get the EffectiveAppearance() check and I don't think it's
needed. Those go through
nsDisplayThemedBackground::CreateWebRenderCommands, and any
author-specified background disables the native appearance.

While at it don't bother to create WR commands for transparent colors,
which are common in the front-end and is a one-liner check.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/99e4377e2e68 https://hg.mozilla.org/integration/autoland/rev/629069ee2ae4 Prevent image function from ending up as WR fallback. r=gfx-reviewers,layout-reviewers,lsalzman,dshin
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch

The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)
Flags: needinfo?(afinder)

The image() function is incorrectly falling back to a blob image.

Use an exclusive switch so that it doesn't happen again. The only thing
we don't support in the WR path as far as I can tell is -moz-element().

-moz-symbolic-icon() works just like url(), and all the cases for url()
where we return false there's basically nothing to draw. cross-fade() is
not implemented in either path so let's return true for now so that we
intentionally switch to false if needed.

I don't get the EffectiveAppearance() check and I don't think it's
needed. Those go through
nsDisplayThemedBackground::CreateWebRenderCommands, and any
author-specified background disables the native appearance.

While at it don't bother to create WR commands for transparent colors,
which are common in the front-end and is a one-liner check.

Original Revision: https://phabricator.services.mozilla.com/D325399

Attachment #9641703 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Degraded performance and memory usage with new theme.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: Trivial-ish patch with good test coverage, correctness-wise.
  • String changes made/needed?: none
  • Is Android affected?: yes
Duplicate of this bug: 2071762
Attachment #9641703 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Blocks: 2070864

Perfherder has detected a awsy performance change from push 629069ee2ae4fdbb2b66c88303e7d1c515f01616.

No action is required from the author; this comment is provided for informational purposes only.

Improvement Test Platform Options Absolute values [old vs new]
6% Heap Unclassified (doc) linux2404-64-shippable fission tp6 453,863,611.59 bytes -> 427,771,224.89 bytes
3% Explicit Memory (doc) linux2404-64-shippable fission tp6 951,789,490.32 bytes -> 918,929,466.84 bytes

Need Help or Information?

If you have any questions, please reach out to fbilt@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

Perfherder has detected a talos performance change from push 629069ee2ae4fdbb2b66c88303e7d1c515f01616.

No action is required from the author; this comment is provided for informational purposes only.

Improvement Test Platform Options Absolute values [old vs new]
15% tresize (doc) linux1804-64-shippable-qr e10s fission stylo webrender-sw 23.78 ms -> 20.28 ms
5% tresize (doc) linux1804-64-shippable-qr e10s fission stylo webrender 22.40 ms -> 21.36 ms

Need Help or Information?

If you have any questions, please reach out to bacasandrei@mozilla.com. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: