mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09: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:
parent
a74251ca91
commit
14e1513077
Notes:
sideshowbarker
2024-07-17 06:09:33 +09:00
Author: https://github.com/ADKaster
Commit: 14e1513077
Pull-request: https://github.com/SerenityOS/serenity/pull/15520
3 changed files with 4 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue