diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-02-23 12:40:07 +0100 |
---|---|---|
committer | Sam Atkins <atkinssj@gmail.com> | 2023-02-23 15:48:38 +0000 |
commit | e905f2591169dea666b04c097195a8f0537b513b (patch) | |
tree | 13ea85f35ba55d2c086c28c8a391cb085cb1f3aa /Userland/Libraries/LibWeb/HTML/Worker.cpp | |
parent | 836cb73d29dda1d1a90193fa07b1a36b37bf8ec4 (diff) | |
download | serenity-e905f2591169dea666b04c097195a8f0537b513b.zip |
LibWeb: Port Worker to new String
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Worker.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Worker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Worker.cpp b/Userland/Libraries/LibWeb/HTML/Worker.cpp index 899975c983..e7ccf27900 100644 --- a/Userland/Libraries/LibWeb/HTML/Worker.cpp +++ b/Userland/Libraries/LibWeb/HTML/Worker.cpp @@ -17,7 +17,7 @@ namespace Web::HTML { // https://html.spec.whatwg.org/multipage/workers.html#dedicated-workers-and-the-worker-interface -Worker::Worker(DeprecatedFlyString const& script_url, WorkerOptions const options, DOM::Document& document) +Worker::Worker(String const& script_url, WorkerOptions const options, DOM::Document& document) : DOM::EventTarget(document.realm()) , m_script_url(script_url) , m_options(options) @@ -47,7 +47,7 @@ void Worker::visit_edges(Cell::Visitor& visitor) } // https://html.spec.whatwg.org/multipage/workers.html#dom-worker -WebIDL::ExceptionOr<JS::NonnullGCPtr<Worker>> Worker::create(DeprecatedFlyString const& script_url, WorkerOptions const options, DOM::Document& document) +WebIDL::ExceptionOr<JS::NonnullGCPtr<Worker>> Worker::create(String const& script_url, WorkerOptions const options, DOM::Document& document) { dbgln_if(WEB_WORKER_DEBUG, "WebWorker: Creating worker with script_url = {}", script_url); @@ -66,7 +66,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Worker>> Worker::create(DeprecatedFlyString auto& outside_settings = document.relevant_settings_object(); // 3. Parse the scriptURL argument relative to outside settings. - auto url = document.parse_url(script_url); + auto url = document.parse_url(script_url.to_deprecated_string()); // 4. If this fails, throw a "SyntaxError" DOMException. if (!url.is_valid()) { |