Contact emails
Explainer
https://github.com/inexorabletash/web-locks
Spec
Summary
A new web platform primitive API that allows parts of a web app running in different tabs/workers to coordinate use of abstract shared resources. This is equivalent to a "mutex" as exposed by many operating systems, with additional optional lock types (exclusive and shared) for common database/filesystem scenarios.
Link to “Intent to Implement” blink-dev discussion
https://groups.google.com/a/chromium.org/d/topic/blink-dev/apdn-NbyZJg/discussionGoals for experimentation
Experimental timeline
We would like to keep Web Locks in Origin Trials in M68, and transition to general availability in M69. The intent to ship in M69 has already been approved.
Any risks when the experiment finishes?
G Suite is prepared to fall back to the pure-JavaScript solution should the Web Locks API become unavailable for any reason, but that would result in a degraded user experience, as the 10x error reduction benefit would go away.
Reason this experiment is being extended
This feature results in significant user experience benefits on a major Web property.Ongoing technical constraints
None
Debuggability
Lock state can be queried via navigator.locks.query() to get a snapshot of lock state. A feature request (from the Google Docs/Sheets/Slides team) would improve this further with application-specific metadata; that can be added in the future without breaking API changes.
Will this feature be supported on all five Blink platforms supported by Origin Trials (Windows, Mac, Linux, Chrome OS, and Android)?
Yes
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/5712361335816192
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAP_mGKrEFLomRB%3DwynZ2Ndt3EBuKjjrecE5g-Y6tWA%2B_gv3UxQ%40mail.gmail.com.