1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 01:15:07 +00:00

LibWeb/HTML: Hook up WindowOrWorkerGlobalScopeMixin to Window

This prepares us to use the shared implementations from this class.
This commit is contained in:
Linus Groh 2023-03-06 11:08:15 +00:00
parent b2409517bd
commit 376fb9ae40
2 changed files with 8 additions and 1 deletions

View file

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