[SecureContext, Exposed=(Window,Worker), Pref="dom.weblocks.enabled"] interface LockManager { [Throws] Promise request(DOMString name, LockGrantedCallback callback); [Throws] Promise request(DOMString name, LockOptions options, LockGrantedCallback callback); [Throws] Promise query(); }; callback LockGrantedCallback = Promise (Lock? lock); enum LockMode { "shared", "exclusive" }; dictionary LockOptions { LockMode mode = "exclusive"; boolean ifAvailable = false; boolean steal = false; AbortSignal signal; }; dictionary LockManagerSnapshot { sequence held; sequence pending; }; dictionary LockInfo { DOMString name; LockMode mode; DOMString clientId; };