Closed
Bug 1609260
Opened 5 years ago
Closed 5 years ago
Unify Replace/ReplaceSync/ParseSheet Code Paths
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
INVALID
People
(Reporter: nordzilla, Assigned: nordzilla)
References
Details
Find a way to better take advantage of sharing code in the Replace()
and ReplaceSync()
functions of StyleSheet
, especially using the ParseSheet
functionality, which can be synchronous or asynchronous.
Assignee | ||
Comment 1•5 years ago
|
||
Even though ParseSheet()
can perform the parse synchronously, it turns out that the MozPromise
that it returns still resolves asynchronously.
ParseSheet()
is not a good fit for ReplaceSync()
at this time, and probably not worth the effort to make it work.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•