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

@ -6,6 +6,8 @@
#pragma once
#include <LibWeb/Bindings/RequestPrototype.h>
#include <LibWeb/Bindings/WorkerPrototype.h>
#include <LibWeb/Forward.h>
#include <LibWeb/HTML/MessagePort.h>
#include <LibWeb/Worker/WebWorkerClient.h>
@ -13,8 +15,8 @@
namespace Web::HTML {
struct WorkerOptions {
String type { "classic"_string };
String credentials { "same-origin"_string };
Bindings::WorkerType type { Bindings::WorkerType::Classic };
Bindings::RequestCredentials credentials { Bindings::RequestCredentials::SameOrigin };
String name { String {} };
};