LibWeb: Use proper enums in WorkerOptions dictionary

This commit is contained in:
Andrew Kaster 2024-09-10 20:57:48 -06:00 committed by Tim Ledbetter
commit 1d43d5b086
Notes: github-actions[bot] 2024-09-20 21:42:39 +00:00
7 changed files with 20 additions and 13 deletions

View file

@ -2,6 +2,7 @@
#import <DOM/EventHandler.idl>
#import <HTML/AbstractWorker.idl>
#import <HTML/MessagePort.idl>
#import <Fetch/Request.idl>
// https://html.spec.whatwg.org/#worker
[Exposed=(Window,DedicatedWorker,SharedWorker)]
@ -18,9 +19,11 @@ interface Worker : EventTarget {
};
dictionary WorkerOptions {
USVString type = "classic";
USVString credentials = "same-origin";
WorkerType type = "classic";
RequestCredentials credentials = "same-origin";
DOMString name = "";
};
enum WorkerType { "classic", "module" };
Worker includes AbstractWorker;