LibWeb: Add relevant principal helper abstract operations

These were recently added into the shadow realm merge request as
convenience helpers.
This commit is contained in:
Shannon Booth 2024-11-28 04:42:30 +13:00 committed by Andreas Kling
commit bc10729af6
Notes: github-actions[bot] 2024-11-30 11:07:30 +00:00
2 changed files with 28 additions and 0 deletions

View file

@ -151,10 +151,17 @@ EnvironmentSettingsObject& current_principal_settings_object();
JS::Realm& principal_realm(GC::Ref<JS::Realm>);
JS::Object& current_principal_global_object();
JS::Realm& relevant_realm(JS::Object const&);
JS::Realm& relevant_principal_realm(JS::Object const&);
EnvironmentSettingsObject& relevant_settings_object(JS::Object const&);
EnvironmentSettingsObject& relevant_settings_object(DOM::Node const&);
EnvironmentSettingsObject& relevant_principal_settings_object(JS::Object const&);
JS::Object& relevant_global_object(JS::Object const&);
JS::Object& relevant_principal_global_object(JS::Object const&);
JS::Realm& entry_realm();
EnvironmentSettingsObject& entry_settings_object();
JS::Object& entry_global_object();