Add CSS_REGISTERED_PROPERTIES resource
Categories
(DevTools :: Inspector: Rules, task)
Tracking
(firefox124 fixed)
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
Since custom properties are tied to a given document it makes sense to have them as resources
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Depends on D196847
Assignee | ||
Comment 2•2 years ago
|
||
Emilio, Zach, I'm adding an event listener on StyleSheetApplicableStateChanged
¹ where the callback calls InspectorUtils.getCSSRegisteredProperties
to retrieve the registered properties added in the stylesheet, but in some cases, it looks like the property aren't registered yet (at least on MacOS on TRY: https://treeherder.mozilla.org/logviewer?job_id=442251180&repo=try&lineNumber=4808-4849).
If I wait ~10ms then I do get the registered properties from the new stylesheet, but I'd rather avoid waiting for some arbitrary duration (just waiting for next tick isn't enough).
Is this something expected, and if so, would you have something in mind so we could fix it?
¹ we might have similar issue with StyleSheetRemoved
, not sure though
Comment 3•2 years ago
|
||
Yes. Change this code to call UpdateStylistIfNeeded.
Assignee | ||
Comment 4•2 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #3)
Yes. Change this code to call UpdateStylistIfNeeded.
thanks, TV jobs are happy with this change now :)
Comment 7•2 years ago
|
||
Backed out for causing failures at browser_resources_css_registered_properties.js.
Backout link: https://hg.mozilla.org/integration/autoland/rev/51b98756f6743eddca1808415f27a517ae1a9abb
Failure log: https://treeherder.mozilla.org/logviewer?job_id=443711475&repo=autoland&lineNumber=27969
Comment 10•2 years ago
|
||
bugherder |
Description
•