Closed Bug 2087354 Opened 1 month ago Closed 1 month ago

store.google.com - It takes a very long time to finish loading. And after clicking a link on the page, it takes a very long time for the page to navigate and become responsive.

Categories

(Core :: CSS Parsing and Computation, defect)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
161 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr153 160+ verified
firefox159 --- wontfix
firefox160 + verified
firefox161 + verified

People

(Reporter: alice0775, Assigned: dshin)

References

(Regression)

Details

(4 keywords)

Attachments

(1 file, 3 external files, 1 obsolete file)

Steps to reproduce:

  1. Open https://store.google.com
    --- It takes a very long time to finish loading
  2. Scroll up and down
    --- Checkerboarding occurs when scrolling up and down the page.
  3. Click link on the page
    --- it takes a very long time for the page to navigate and become responsive

Actual results:
It takes a very long time to finish loading.
https://share.firefox.dev/4if3Rrx
https://share.firefox.dev/4ifhHtY

Checkerboarding occurs when scrolling up and down the page.
https://share.firefox.dev/4f38hiW

And after clicking a link on the page, it takes a very long time for the page to navigate and become responsive.

Expected results:
That shouldn't happen.

Attached file about:support —

Regression window:
https://hg-edge.mozilla.org/integration/autoland/pushloghtml?fromchange=cd324cfaf45936b4670a6c0d15cbfe22d0e2f609&tochange=dbb93ea14f589e1d789bc10eb1aa7194f8b39afb

Setting layout.css.has-selector.enabled to false fixes the long delay in page loading on the bad build.

Keywords: regression
Regressed by: 1852965

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::General' component, but is not confident enough to move the bug to that component.

Component: Untriaged → General

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

:dshin, since you are the author of the regressor, bug 1852965, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(dshin)

This looks like it could be the same as bug 2087106, but this report has more actionable info right now. Moving to the same component as bug 1852965 pre-emptively in case that is the cause.

Component: General → CSS Parsing and Computation
Product: Firefox → Core

Investigating. At a glance, lots of :has use with attribute selectors only. Hm.

Assignee: nobody → dshin
Duplicate of this bug: 2087106

Ah, :has(:active) invalidates when users click on the scrollbar as well. We should not do that...

Initially, this was not implemented because minor/negative and we focused on
minimizing upwards traversals by marking :has search paths. One way or the
other, that doesn't seem enough.

... Only single element property mutations have snapshots, so DOM mutations
remain unchanged (... It's unlikely that this approach is correct for DOM
mutations, anyway). That side could use an improvement as well, tracked in
Bug 2086739.

Attachment #9671857 - Attachment description: WIP: Bug 2087354: For :has, try to detect change in the potentially-changed compound. r=#style → Bug 2087354: For :has, try to detect change in the potentially-changed compound. r=#style

(S2 since it's a significant slowdown on a major website)

Severity: -- → S2
Flags: needinfo?(dshin)
Pushed by dshin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/841a4a9a9fdc https://hg.mozilla.org/integration/autoland/rev/4d756348881d For :has, try to detect change in the potentially-changed compound. r=firefox-style-system-reviewers,emilio

(In reply to Pulsebot from comment #11)

Pushed by dshin@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/841a4a9a9fdc
https://hg.mozilla.org/integration/autoland/rev/4d756348881d
For :has, try to detect change in the potentially-changed compound.
r=firefox-style-system-reviewers,emilio

The autoland build fixes the issue, however, when clicking a link of navigation menus on that page, it takes a very long time for the linked page to load.
I have filed a new Bug 2087787 .

Blocks: 2087787

I can confirm this issue is cross-platform and happening on Linux, macOS, and Windows. I will test it out on Android and iOS and report back.

Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 161 Branch

The patch landed in nightly and ESR is affected.

:dshin, please make an uplift decision for ESR:

  • For ESR, nominate the patch for the appropriate ESR uplift approval if the fix should be included in ESR, or set the ESR status flag(s) to wontfix if an uplift isn't needed. Each affected ESR release needs a decision.

Uplift requests can be submitted from Lando: D338425.

See Requesting an Uplift for documentation on how to request an uplift.

For more information, please visit BugBot documentation.

Flags: needinfo?(dshin)

This is getting pretty widespread complaints on Reddit. I think we should try to get this uplifted to 160 and ESR153 if the risk is low enough to do so with only a few days left for Beta this cycle.

Emilio, dshin is on PTO it appears. Can you please handle uplift requests?

Flags: needinfo?(emilio)

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: perf improvement on high profile website.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: comment 0
  • Risk associated with taking this patch: low
  • Explanation of risk level: Targetted change.
  • String changes made/needed?: none
  • Is Android affected?: yes
Attachment #9672357 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Initially, this was not implemented because the tradeoff seemed minor/negative
and we focused on minimizing upwards traversals by marking :has search paths.
One way or the other, that doesn't seem enough.

... Only single element property mutations have snapshots, so DOM mutations
remain unchanged (... It's unlikely that this approach is correct for DOM
mutations, anyway). That side could use an improvement as well, tracked in
Bug 2086739.

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

firefox-release Uplift Approval Request

  • User impact if declined/Reason for urgency: perf improvement on high profile website.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: comment 0
  • Risk associated with taking this patch: low
  • Explanation of risk level: Targetted change.
  • String changes made/needed?: none
  • Is Android affected?: yes
Attachment #9672358 - Flags: approval-mozilla-release?

Initially, this was not implemented because the tradeoff seemed minor/negative
and we focused on minimizing upwards traversals by marking :has search paths.
One way or the other, that doesn't seem enough.

... Only single element property mutations have snapshots, so DOM mutations
remain unchanged (... It's unlikely that this approach is correct for DOM
mutations, anyway). That side could use an improvement as well, tracked in
Bug 2086739.

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

Attachment #9672358 - Attachment is obsolete: true
Attachment #9672358 - Flags: approval-mozilla-release?
Attachment #9672357 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Please add an uplift request for ESR153, 153.7 builds tomorrow otherwise it will make 153.8

Initially, this was not implemented because the tradeoff seemed minor/negative
and we focused on minimizing upwards traversals by marking :has search paths.
One way or the other, that doesn't seem enough.

... Only single element property mutations have snapshots, so DOM mutations
remain unchanged (... It's unlikely that this approach is correct for DOM
mutations, anyway). That side could use an improvement as well, tracked in
Bug 2086739.

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

Attachment #9672756 - Flags: approval-mozilla-esr153?

firefox-esr153 Uplift Approval Request

  • User impact if declined/Reason for urgency: comment 0
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: yes
  • Steps to reproduce for manual QE testing: comment 0
  • Risk associated with taking this patch: low
  • Explanation of risk level: targeted
  • String changes made/needed?: none
  • Is Android affected?: yes

Seems fine bug we probably want bug 2087787 as well...

Flags: needinfo?(emilio)
QA Whiteboard: [uplift][qa-ver-needed-c161/b160]

This issue was reproduced in Nightly v161.0a1 from 2026-10-30 and Beta v160.0b4 in Windows 10, 11 MacOS 14 ARM and Ubuntu 24.
I can confirm this fix in Nightly v161.0a1 from 2026-11-02 in Windows 10, 11, MacOS 14 ARM and Ubuntu 24.

This issue still occurs in the latest released beta build so I will use a Treeherder build from here to verify the fix in branch 160.
The issue is also verified in Beta v160.0b5 20261102154130 in Window 10, 11, MacOS 14 ARM and Ubuntu 24.

Waiting for possible future uplifts to release and ESR branches.

Flags: qe-verify+
OS: Windows 11 → All
Attachment #9672756 - Flags: approval-mozilla-esr153? → approval-mozilla-esr153+

Clearing the uplift needinfo request since this bug is closed and no Firefox version is marked as affected anymore.

For more information, please visit BugBot documentation.

Flags: needinfo?(dshin)

Verified the fix for ESR153 as well. Tests were performed on macOS 26, Ubuntu 26.04 and Windows 11.

Status: RESOLVED → VERIFIED
QA Whiteboard: [uplift][qa-ver-needed-c161/b160] → [uplift][qa-ver-done-c161/b160]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: