Closed Bug 1876496 Opened 1 year ago Closed 1 year ago

nsIDOMWindowUtils.getUnanimatedComputedStyle throws NS_ERROR_FAILURE when called with custom property

Categories

(DevTools :: Inspector, defect)

defect

Tracking

(firefox-esr115 unaffected, firefox122 unaffected, firefox123 disabled, firefox124 fixed)

RESOLVED FIXED
124 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox122 --- unaffected
firefox123 --- disabled
firefox124 --- fixed

People

(Reporter: nchevobbe, Assigned: zrhoffman)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

The following expression throws

DOMWindowUtils.getUnanimatedComputedStyle(
  document.body,
  null,
  "--custom",
  DOMWindowUtils.FLUSH_NONE
)

(can be triggered by going to https://ffx-devtools-at-property.glitch.me/ , opening the animation panel and selecting a div)

Zach, is this something similar to Bug 1875441 ?

Flags: needinfo?(zach)

Oops, the custom property in nsDOMWindowUtils::GetUnanimatedComputedStyle should have the -- prefix removed, similar to <https://searchfox.org/mozilla-central/rev/cee2c396081d950f9e3401113fb179999e404ab8/dom/animation/KeyframeUtils.cpp#577-578>. Patch incoming...

Flags: needinfo?(zach)

Including the -- prefix in custom property names caused
Servo_ComputedValues_ExtractAnimationValue to not find custom properties
that nsDOMWindowUtils::GetUnanimatedComputedStyle passed.

Assignee: nobody → zach
Status: NEW → ASSIGNED
Pushed by zach@zrhoffman.net: https://hg.mozilla.org/integration/autoland/rev/2af2984af50a Remove prefix from custom property name passed to AnimatedPropertyID r=nchevobbe,emilio
Keywords: regression
Regressed by: 1846516

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

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 124 Branch

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

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox123 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(zach)

Nicolas, would this be useful to uplift or no?

Flags: needinfo?(zach) → needinfo?(nchevobbe)

(In reply to Zach Hoffman [:zrhoffman] from comment #8)

Nicolas, would this be useful to uplift or no?

No it's fine I think, animating custom properties is tied to layout.css.properties-and-values.enabled, which is still Nightly only

Flags: needinfo?(nchevobbe)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: