Application defined "locks"

A proposal dating back to 2009 suggests adding platform primitives for web apps to coordinate usage of resources across execution contexts (tabs/frames/workers). We’ve learned that many applications are now working around this gap by using polling against databases such as Indexed DB, or coordinating via Service Workers (and databases).

With a handful of others, I’ve been discussing a Web Locks API. We’ve been prototyping an experimental implementation in Chrome as well, and would like feedback from others. It may also make sense to move further discussion (and the repo) into the WICG.


Any interest from others?


I’ve requested a position from Mozilla.

FYI, this has migrated to WICG: