LibWeb: Add principal settings object helper function

To more clearly represent the host binding which a principal setting
realm has.
This commit is contained in:
Shannon Booth 2024-10-25 15:49:06 +13:00 committed by Andrew Kaster
commit 1871b744ff
Notes: github-actions[bot] 2024-11-02 00:56:31 +00:00
2 changed files with 9 additions and 1 deletions

View file

@ -147,6 +147,7 @@ JS::Realm& incumbent_realm();
JS::Object& incumbent_global_object();
JS::Realm& current_principal_realm();
EnvironmentSettingsObject& principal_realm_settings_object(JS::Realm&);
EnvironmentSettingsObject& current_principal_settings_object();
JS::Realm& principal_realm(JS::Realm&);