diff --git a/Userland/Libraries/LibWeb/HTML/Window.cpp b/Userland/Libraries/LibWeb/HTML/Window.cpp
index d60baa5bd1..24a5be3052 100644
--- a/Userland/Libraries/LibWeb/HTML/Window.cpp
+++ b/Userland/Libraries/LibWeb/HTML/Window.cpp
@@ -1847,7 +1847,7 @@ JS_DEFINE_NATIVE_FUNCTION(Window::is_secure_context_getter)
{
auto* impl = TRY(impl_from(vm));
// The isSecureContext getter steps are to return true if this's relevant settings object is a secure context, or false otherwise.
- return JS::Value(is_secure_context(impl->associated_document().relevant_settings_object()));
+ return JS::Value(HTML::is_secure_context(impl->associated_document().relevant_settings_object()));
}
JS_DEFINE_NATIVE_FUNCTION(Window::local_storage_getter)
diff --git a/Userland/Libraries/LibWeb/HTML/Window.h b/Userland/Libraries/LibWeb/HTML/Window.h
index 20c059cc22..5f6c8907e0 100644
--- a/Userland/Libraries/LibWeb/HTML/Window.h
+++ b/Userland/Libraries/LibWeb/HTML/Window.h
@@ -24,6 +24,7 @@
#include
#include
#include
+#include
namespace Web::HTML {
@@ -36,6 +37,7 @@ class Window final
: public DOM::EventTarget
, public HTML::GlobalEventHandlers
, public HTML::WindowEventHandlers
+ , public WindowOrWorkerGlobalScopeMixin
, public Bindings::WindowGlobalMixin {
WEB_PLATFORM_OBJECT(Window, DOM::EventTarget);
@@ -44,8 +46,13 @@ public:
~Window();
+ // ^DOM::EventTarget
virtual bool dispatch_event(DOM::Event&) override;
+ // ^WindowOrWorkerGlobalScopeMixin
+ virtual Bindings::PlatformObject& this_impl() override { return *this; }
+ virtual Bindings::PlatformObject const& this_impl() const override { return *this; }
+
Page* page();
Page const* page() const;