-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose Web Locks interfaces to SharedStorageWorklet
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
From f34f3416f5230132136ff05344a7a9f809f97208 Mon Sep 17 00:00:00 2001 | ||
From: Francois Daoust <[email protected]> | ||
Date: Mon, 16 Dec 2024 15:22:46 +0100 | ||
Subject: [PATCH] Expose Web Locks interfaces to SharedStorageWorklet | ||
|
||
This integrates the monkey patch made in Shared Storage, pending proper | ||
integration in Web Locks. No specific issue but patch will fail once done. | ||
--- | ||
ed/idl/web-locks.idl | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/ed/idl/web-locks.idl b/ed/idl/web-locks.idl | ||
index d79e404b9..00648cc3b 100644 | ||
--- a/ed/idl/web-locks.idl | ||
+++ b/ed/idl/web-locks.idl | ||
@@ -10,7 +10,7 @@ interface mixin NavigatorLocks { | ||
Navigator includes NavigatorLocks; | ||
WorkerNavigator includes NavigatorLocks; | ||
|
||
-[SecureContext, Exposed=(Window,Worker)] | ||
+[SecureContext, Exposed=(Window,Worker,SharedStorageWorklet)] | ||
interface LockManager { | ||
Promise<any> request(DOMString name, | ||
LockGrantedCallback callback); | ||
@@ -43,7 +43,7 @@ dictionary LockInfo { | ||
DOMString clientId; | ||
}; | ||
|
||
-[SecureContext, Exposed=(Window,Worker)] | ||
+[SecureContext, Exposed=(Window,Worker,SharedStorageWorklet)] | ||
interface Lock { | ||
readonly attribute DOMString name; | ||
readonly attribute LockMode mode; | ||
-- | ||
2.37.1.windows.1 | ||
|