mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +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
@@ -7,6 +7,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <AK/URL.h>
|
||||
#include <LibWeb/Bindings/DedicatedWorkerExposedInterfaces.h>
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
@@ -33,6 +34,9 @@ public:
|
||||
auto host_defined = make<Bindings::HostDefined>(*settings_object, *intrinsics);
|
||||
realm->set_host_defined(move(host_defined));
|
||||
|
||||
// FIXME: Shared workers should use the shared worker method
|
||||
Bindings::add_dedicated_worker_exposed_interfaces(realm->global_object(), *realm);
|
||||
|
||||
return *settings_object;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user