LibWeb: Make Worker.cpp compile again with WEB_WORKER_DEBUG enabled

This commit is contained in:
Rocco Corsi 2025-10-25 10:02:51 -04:00 committed by Tim Flynn
parent 5f963e1c52
commit 633fc45e0f

View File

@ -46,8 +46,6 @@ void Worker::visit_edges(Cell::Visitor& visitor)
// https://whatpr.org/html/9893/workers.html#dom-worker
WebIDL::ExceptionOr<GC::Ref<Worker>> Worker::create(TrustedTypes::TrustedScriptURLOrString const& script_url, WorkerOptions const& options, DOM::Document& document)
{
dbgln_if(WEB_WORKER_DEBUG, "WebWorker: Creating worker with script_url = {}", script_url);
// Returns a new Worker object. scriptURL will be fetched and executed in the background,
// creating a new global environment for which worker represents the communication channel.
// options can be used to define the name of that global environment via the name option,
@ -64,6 +62,8 @@ WebIDL::ExceptionOr<GC::Ref<Worker>> Worker::create(TrustedTypes::TrustedScriptU
TrustedTypes::InjectionSink::Workerconstructor,
TrustedTypes::Script.to_string()));
dbgln_if(WEB_WORKER_DEBUG, "WebWorker: Creating worker with compliant_script_url = {}", compliant_script_url);
// 2. Let outside settings be the current principal settings object.
auto& outside_settings = current_principal_settings_object();