mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Always assert that principal realm returns a principal realm
There was a bug in the HTML proposal where a synthetic realm settings object's principal realm was a shadow realm if there were nested shadow realms, which this assertion catches more directly (rather than later down the track, where it is used). We were meant to also assert for this case, but we were previously returning early.
This commit is contained in:
committed by
Andreas Kling
parent
27f1e3676f
commit
bb10b0e301
@@ -149,7 +149,7 @@ JS::Realm& current_principal_realm();
|
||||
EnvironmentSettingsObject& principal_realm_settings_object(JS::Realm&);
|
||||
EnvironmentSettingsObject& current_principal_settings_object();
|
||||
|
||||
JS::Realm& principal_realm(JS::Realm&);
|
||||
JS::Realm& principal_realm(GC::Ref<JS::Realm>);
|
||||
JS::Object& current_principal_global_object();
|
||||
JS::Realm& relevant_realm(JS::Object const&);
|
||||
EnvironmentSettingsObject& relevant_settings_object(JS::Object const&);
|
||||
|
||||
Reference in New Issue
Block a user