1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-03 00:52:12 +00:00

LibWeb: Port WorkerGlobalScope to new String

This commit is contained in:
Kenneth Myhra 2023-02-23 10:16:20 +01:00 committed by Sam Atkins
parent 9c5bdb0b86
commit be727ea871
3 changed files with 12 additions and 12 deletions

View file

@ -42,7 +42,7 @@ public:
JS::NonnullGCPtr<WorkerLocation> location() const;
JS::NonnullGCPtr<WorkerNavigator> navigator() const;
WebIDL::ExceptionOr<void> import_scripts(Vector<DeprecatedString> urls);
WebIDL::ExceptionOr<void> import_scripts(Vector<String> urls);
#undef __ENUMERATE
#define __ENUMERATE(attribute_name, event_name) \
@ -54,11 +54,11 @@ public:
// Following methods are from the WindowOrWorkerGlobalScope mixin
// https://html.spec.whatwg.org/multipage/webappapis.html#windoworworkerglobalscope-mixin
DeprecatedString origin() const;
String origin() const;
bool is_secure_context() const;
bool cross_origin_isolated() const;
WebIDL::ExceptionOr<DeprecatedString> btoa(DeprecatedString const& data) const;
WebIDL::ExceptionOr<DeprecatedString> atob(DeprecatedString const& data) const;
WebIDL::ExceptionOr<String> btoa(String const& data) const;
WebIDL::ExceptionOr<String> atob(String const& data) const;
// Non-IDL public methods