w3c / web-locks

Cross-tab resource coordination API
https://w3c.github.io/web-locks/
Other
124 stars 16 forks source link

LockGrantedCallback IDL looks wrong #51

Closed bzbarsky closed 6 years ago

bzbarsky commented 6 years ago

The IDL says:

callback LockGrantedCallback = Promise<any> (Lock lock);

but https://wicg.github.io/web-locks/#algorithm-request-lock step 6.1.1 passes null as the argument, which is not a valid Lock value. Presumably this callback should take Lock?.

inexorabletash commented 6 years ago

Whoops, yep. Fixed. WPT change coming.