w3c / compute-pressure

A web API proposal that provides information about available compute capacity
https://www.w3.org/TR/compute-pressure/
Other
69 stars 10 forks source link

Make PressureObserver.observe() and data delivery algorithm less vague #283

Closed rakuco closed 3 months ago

rakuco commented 3 months ago

Related to #282: we need these algorithms to be properly defined in order to be able to support WebDriver and fake pressure states.

This somewhat big change intends to clarify what "activate" and "deactivate" data delivery actually mean, as there used to be just a "data delivery" algorithm and no accompanying definitions for those two verbs. Furthermore, the data delivery algorithm itself was confusing:

Fixing the above has required changes in different layers:

Co-authored with @kenchris in #265. It was split off as a separate pull request to make it easier to review and understand.


Preview | Diff

rakuco commented 3 months ago

@kenchris @arskama the contents are all in #265. This is the part of that PR that is unrelated to WebDriver. Hopefully it's easier to review here.