mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibWeb: Use proper enums in WorkerOptions dictionary
This commit is contained in:
parent
a0c07d1bb2
commit
1d43d5b086
Notes:
github-actions[bot]
2024-09-20 21:42:39 +00:00
Author: https://github.com/ADKaster
Commit: 1d43d5b086
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1404
Reviewed-by: https://github.com/tcl3 ✅
7 changed files with 20 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue