Skip to content

Commit

Permalink
Update Worklet IDL to latest version from gecko (#1817)
Browse files Browse the repository at this point in the history
  • Loading branch information
msiglreith authored and alexcrichton committed Oct 16, 2019
1 parent c7514b7 commit a31b813
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions crates/web-sys/webidls/enabled/Worklet.webidl
Expand Up @@ -7,8 +7,13 @@
* https://drafts.css-houdini.org/worklets/#idl-index
*/

[Pref="dom.worklet.enabled"]
[Pref="dom.worklet.enabled",
Exposed=Window]
interface Worklet {
[NewObject, Throws, NeedsCallerType]
Promise<void> import(USVString moduleURL);
Promise<void> addModule(USVString moduleURL, optional WorkletOptions options = {});
};

dictionary WorkletOptions {
RequestCredentials credentials = "same-origin";
};

0 comments on commit a31b813

Please sign in to comment.