Closed Bug 1609260 Opened 4 years ago Closed 4 years ago

Unify Replace/ReplaceSync/ParseSheet Code Paths

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

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.

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: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.