Closed Bug 2027052 Opened 18 days ago Closed 17 days ago

svg <set attributeName="class"> not ending without inspect element

Categories

(Core :: SVG, defect)

Firefox 151
defect

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox-esr140 --- unaffected
firefox149 --- unaffected
firefox150 --- fixed
firefox151 --- fixed

People

(Reporter: alanas.00, Assigned: longsonr)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files, 1 obsolete file)

Attached video svg <set> stuck.webm

Steps to reproduce:

  1. open https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/set with firefox nightly (https://ftp.mozilla.org/pub/firefox/nightly/2026/03/2026-03-27-09-23-54-mozilla-central/firefox-151.0a1.en-US.linux-x86_64.tar.xz)
  2. click black square
  3. wait 2 seconds

Actual results:

black square becomes green circle and stays green circle

Expected results:

black square becomes green circle for 2 seconds

Would you be willing to use https://mozilla.github.io/mozregression/ to find a regression range? It's a pretty recent thing because it works in 149.

Flags: needinfo?(alanas.00)

The Bugbug bot thinks this bug should belong to the 'Core::SVG' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → SVG
Product: Firefox → Core

(In reply to Robert Longson [:longsonr] from comment #1)

Would you be willing to use https://mozilla.github.io/mozregression/ to find a regression range?

found by downloading and trying many nightly versions:

last good (black square becomes green circle for 2 seconds) nightly:
https://ftp.mozilla.org/pub/firefox/nightly/2026/03/2026-03-02-21-14-16-mozilla-central/firefox-150.0a1.en-US.linux-x86_64.tar.xz

first bad (black square becomes green circle and stays green circle) nightly:
https://ftp.mozilla.org/pub/firefox/nightly/2026/03/2026-03-03-09-56-35-mozilla-central/firefox-150.0a1.en-US.linux-x86_64.tar.xz

is https://mozilla.github.io/mozregression/ needed?

Flags: needinfo?(alanas.00)

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

For more information, please visit BugBot documentation.

Flags: needinfo?(emilio)
Assignee: nobody → longsonr
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

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

note: firefox 148 is not also perfect (other elements get stuck)

Thanks Robert!

Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 17 days ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: Fixes a recent regression when animating SVG elements.
  • 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: reinstates some recently removed code that was thought not to be needed. Turns out that assesment was optimistic.
  • String changes made/needed?: none
  • Is Android affected?: yes
Attachment #9560269 - Flags: approval-mozilla-beta?

In the ClearAnimVal() codepath the snapshot is taken too late because
the GetAnimatedClassName() codepath checks IsAnimating(), which already
returns false.

Fix it by introducing WillAnimateClass(). Also, free the animated
classname when not animating anymore to avoid that check altogether.

Comment on attachment 9560323 [details]
Bug 2027052 - Fix style invalidation for SVG class attribute SMIL changes. r=longsonr

Revision D290748 was moved to bug 2027540. Setting attachment 9560323 [details] to obsolete.

Attachment #9560323 - Attachment is obsolete: true
Upstream PR merged by moz-wptsync-bot
Attachment #9560269 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: