1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:18:11 +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:
Andrew Kaster 2022-10-08 17:32:03 -06:00 committed by Andreas Kling
parent a74251ca91
commit 14e1513077
3 changed files with 4 additions and 7 deletions

View file

@ -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;
}