mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 00:38:48 +00:00
LibWeb: Rename current settings object to 'current principal'
Aligning the name with the the PR implementing the javascript shadow realm proposal into the web platform. This commit simply performs the rename before implementing the behaviour change. The actual change to the behaviour of the AO is not implemented in this commit to support 'synthetic' shadow realms as the surrounding infrastructure is not in place yet. Not all specs have a MR open to align with this proposed change to the HTML standard. But in this case we can just apply the same mechanical change everywhere.
This commit is contained in:
parent
72f5fac2ff
commit
b2f3ed8b5a
Notes:
github-actions[bot]
2024-11-01 19:17:08 +00:00
Author: https://github.com/shannonbooth
Commit: b2f3ed8b5a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1932
Reviewed-by: https://github.com/ADKaster ✅
16 changed files with 50 additions and 39 deletions
|
@ -81,6 +81,7 @@ ByteString module_type_from_module_request(JS::ModuleRequest const& module_reque
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#resolve-a-module-specifier
|
||||
// https://whatpr.org/html/9893/webappapis.html#resolve-a-module-specifier
|
||||
WebIDL::ExceptionOr<URL::URL> resolve_module_specifier(Optional<Script&> referring_script, ByteString const& specifier)
|
||||
{
|
||||
// 1. Let settingsObject and baseURL be null.
|
||||
|
@ -97,11 +98,11 @@ WebIDL::ExceptionOr<URL::URL> resolve_module_specifier(Optional<Script&> referri
|
|||
}
|
||||
// 3. Otherwise:
|
||||
else {
|
||||
// 1. Assert: there is a current settings object.
|
||||
// NOTE: This is handled by the current_settings_object() accessor.
|
||||
// 1. Assert: there is a current principal settings object.
|
||||
// NOTE: This is handled by the current_principal_settings_object() accessor.
|
||||
|
||||
// 2. Set settingsObject to the current settings object.
|
||||
settings_object = current_settings_object();
|
||||
// 2. Set settingsObject to the current principal settings object.
|
||||
settings_object = current_principal_settings_object();
|
||||
|
||||
// 3. Set baseURL to settingsObject's API base URL.
|
||||
base_url = settings_object->api_base_url();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue