1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 12:08:14 +00:00

LibWeb/HTML: Implement WorkerGlobalScope::is_secure_context()

This commit is contained in:
Linus Groh 2023-03-05 23:57:48 +00:00
parent d1a7c39e76
commit ed15c34387

View file

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