[wake-lock] Break specification into levels (#253)

reillyeon has just created a new issue for https://github.com/w3c/wake-lock:

== Break specification into levels ==
Chrome has been running an Origin Trial for the "screen" wake lock type since Chrome 79 with positive feedback from developers. The feedback on mozilla/standards-positions#210 on this subset of the specification is also trending in a positive direction.

In order to reduce this specification to the subset that Chrome intends to ship soon and Mozilla appears potentially supportive of I propose that the "system" wake lock feature be removed from the main specification document. This will become "Wake Lock API Level 1". Work on other types of wake locks, including a "system" or "cpu" wake lock as explored in #232 can continue to be drafted and discussed as "Wake Lock API Level 2".

In "Wake Lock API Level 1" the currently proposed IDL interface will remain the same except the `type` parameter will be removed from the `request()` method. This enum will move to "Wake Lock API Level 2", where the `request()` method will take a single parameter with a default value of `"screen"`. This will reserve the parameter for use by future extensions to the API as they are developed in a way that retains compatibility with code written against Level 1.

@kenchris @marcoscaceres, what do you think of this proposal?

Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/253 using your GitHub account

Received on Tuesday, 25 February 2020 20:25:42 UTC