1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:08:13 +00:00

LibWeb: Implement the 'Entry Realm/{settings,global} object' concepts

This commit is contained in:
Idan Horowitz 2022-11-15 01:51:40 +02:00 committed by Linus Groh
parent c9f9fcd8fd
commit f69c135796
2 changed files with 29 additions and 0 deletions

View file

@ -143,6 +143,9 @@ JS::Realm& relevant_realm(JS::Object const&);
EnvironmentSettingsObject& relevant_settings_object(JS::Object const&);
EnvironmentSettingsObject& relevant_settings_object(DOM::Node const&);
JS::Object& relevant_global_object(JS::Object const&);
JS::Realm& entry_realm();
EnvironmentSettingsObject& entry_settings_object();
JS::Object& entry_global_object();
[[nodiscard]] bool is_secure_context(Environment const&);
[[nodiscard]] bool is_non_secure_context(Environment const&);