Closed Bug 1865016 Opened 2 years ago Closed 2 years ago

Switch usage of cssRule.type to ChromeUtils.getClassName(cssRule)

Categories

(DevTools :: Inspector, task)

task

Tracking

(firefox122 fixed)

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

Details

Attachments

(1 file)

The type property is deprecated ¹ and new rules (e.g. @property) don't have a meaningful/identifiable value in it.
We're still using it in our code base in some places, and it would be better to switch to get the actual class name of the rule.

¹ https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/type

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5c1522d06d78 [devtools] Avoid using deprecated CSSRule#type. r=devtools-reviewers,ochameau.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: