Skip to content

Commit a31b813

Browse files
msiglreithalexcrichton
authored andcommitted
Update Worklet IDL to latest version from gecko (#1817)
1 parent c7514b7 commit a31b813

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

crates/web-sys/webidls/enabled/Worklet.webidl

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
* https://drafts.css-houdini.org/worklets/#idl-index
88
*/
99

10-
[Pref="dom.worklet.enabled"]
10+
[Pref="dom.worklet.enabled",
11+
Exposed=Window]
1112
interface Worklet {
1213
[NewObject, Throws, NeedsCallerType]
13-
Promise<void> import(USVString moduleURL);
14+
Promise<void> addModule(USVString moduleURL, optional WorkletOptions options = {});
15+
};
16+
17+
dictionary WorkletOptions {
18+
RequestCredentials credentials = "same-origin";
1419
};

0 commit comments

Comments
 (0)