From ed15c3438729ef6164e70cb8119958eae883c597 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 5 Mar 2023 23:57:48 +0000 Subject: [PATCH] LibWeb/HTML: Implement WorkerGlobalScope::is_secure_context() --- Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp index 7f7bc17dcc..5e91b0162e 100644 --- a/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp +++ b/Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp @@ -116,8 +116,8 @@ WebIDL::ExceptionOr WorkerGlobalScope::origin() const // https://html.spec.whatwg.org/multipage/webappapis.html#dom-issecurecontext bool WorkerGlobalScope::is_secure_context() const { - // FIXME: The isSecureContext getter steps are to return true if this's relevant settings object is a secure context, or false otherwise. - return false; + // The isSecureContext getter steps are to return true if this's relevant settings object is a secure context, or false otherwise. + return HTML::is_secure_context(relevant_settings_object(*this)); } // https://html.spec.whatwg.org/multipage/webappapis.html#dom-crossoriginisolated