Update Worklet IDL to latest version from gecko (#1817)

This commit is contained in:
msiglreith 2019-10-16 16:41:25 +02:00 committed by Alex Crichton
parent c7514b7ee8
commit a31b81307c

View File

@ -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";
};