mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Remove the workaround "Worker Window" from Workers
We can now properly add the prototypes and constructors to the global object of the Worker's inner realm, so we don't need this window for anything anymore.
This commit is contained in:
committed by
Andreas Kling
parent
a74251ca91
commit
14e1513077
@@ -128,10 +128,6 @@ void Worker::run_a_worker(AK::URL& url, EnvironmentSettingsObject& outside_setti
|
||||
auto& console_object = *realm_execution_context->realm->intrinsics().console_object();
|
||||
m_worker_realm = realm_execution_context->realm;
|
||||
|
||||
// FIXME: Remove this once we don't need a hack Window (for prototypes and constructors) in workers anymore.
|
||||
m_worker_window = HTML::Window::create(*m_worker_realm);
|
||||
m_worker_realm->set_global_object(m_worker_scope, nullptr);
|
||||
|
||||
m_console = adopt_ref(*new WorkerDebugConsoleClient(console_object.console()));
|
||||
console_object.console().set_client(*m_console);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user