LibWeb: Fill out implementation of current_principal_settings_object

In terms of the 'current principal realm' definition.

No functional impact, as we still need to implement current principal
realm once the surrounding infrastructure is in place. But it is one
less place which needs to be updated when that is all in place :^)
This commit is contained in:
Shannon Booth 2024-10-21 13:42:32 +13:00 committed by Andrew Kaster
commit 0c2400641e
Notes: github-actions[bot] 2024-11-01 19:17:03 +00:00
2 changed files with 15 additions and 4 deletions

View file

@ -142,7 +142,10 @@ private:
EnvironmentSettingsObject& incumbent_settings_object();
JS::Realm& incumbent_realm();
JS::Object& incumbent_global_object();
JS::Realm& current_principal_realm();
EnvironmentSettingsObject& current_principal_settings_object();
JS::Object& current_global_object();
JS::Realm& relevant_realm(JS::Object const&);
EnvironmentSettingsObject& relevant_settings_object(JS::Object const&);