|
| 1 | +From f34f3416f5230132136ff05344a7a9f809f97208 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Francois Daoust < [email protected]> |
| 3 | +Date: Mon, 16 Dec 2024 15:22:46 +0100 |
| 4 | +Subject: [PATCH] Expose Web Locks interfaces to SharedStorageWorklet |
| 5 | + |
| 6 | +This integrates the monkey patch made in Shared Storage, pending proper |
| 7 | +integration in Web Locks. No specific issue but patch will fail once done. |
| 8 | +--- |
| 9 | + ed/idl/web-locks.idl | 4 ++-- |
| 10 | + 1 file changed, 2 insertions(+), 2 deletions(-) |
| 11 | + |
| 12 | +diff --git a/ed/idl/web-locks.idl b/ed/idl/web-locks.idl |
| 13 | +index d79e404b9..00648cc3b 100644 |
| 14 | +--- a/ed/idl/web-locks.idl |
| 15 | ++++ b/ed/idl/web-locks.idl |
| 16 | +@@ -10,7 +10,7 @@ interface mixin NavigatorLocks { |
| 17 | + Navigator includes NavigatorLocks; |
| 18 | + WorkerNavigator includes NavigatorLocks; |
| 19 | + |
| 20 | +-[SecureContext, Exposed=(Window,Worker)] |
| 21 | ++[SecureContext, Exposed=(Window,Worker,SharedStorageWorklet)] |
| 22 | + interface LockManager { |
| 23 | + Promise<any> request(DOMString name, |
| 24 | + LockGrantedCallback callback); |
| 25 | +@@ -43,7 +43,7 @@ dictionary LockInfo { |
| 26 | + DOMString clientId; |
| 27 | + }; |
| 28 | + |
| 29 | +-[SecureContext, Exposed=(Window,Worker)] |
| 30 | ++[SecureContext, Exposed=(Window,Worker,SharedStorageWorklet)] |
| 31 | + interface Lock { |
| 32 | + readonly attribute DOMString name; |
| 33 | + readonly attribute LockMode mode; |
| 34 | +-- |
| 35 | +2.37.1.windows.1 |
| 36 | + |
0 commit comments