diff options
author | Linus Groh <mail@linusgroh.de> | 2023-03-05 23:57:48 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-06 11:02:25 +0000 |
commit | ed15c3438729ef6164e70cb8119958eae883c597 (patch) | |
tree | e090aae2edb9a7460987b62e7e5db1152ea7694d /Userland | |
parent | d1a7c39e76d8afd6bd5f3caff6e2e48cd6c2b1f6 (diff) | |
download | serenity-ed15c3438729ef6164e70cb8119958eae883c597.zip |
LibWeb/HTML: Implement WorkerGlobalScope::is_secure_context()
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/WorkerGlobalScope.cpp | 4 |
1 files 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<String> 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 |