LibWeb: Rename current_global_object to current_principal_global_object

Again, following a rename as part of the introduction of shadow realms
inducing a bunch of mechanical changes.
This commit is contained in:
Shannon Booth 2024-10-21 13:48:44 +13:00 committed by Andrew Kaster
commit 84dc83e0e0
Notes: github-actions[bot] 2024-11-01 19:16:55 +00:00
14 changed files with 27 additions and 25 deletions

View file

@ -2440,7 +2440,7 @@ static void generate_html_constructor(SourceGenerator& generator, IDL::Construct
}
constructor_generator.append(R"~~~(
auto& window = verify_cast<HTML::Window>(HTML::current_global_object());
auto& window = verify_cast<HTML::Window>(HTML::current_principal_global_object());
// 1. Let registry be the current global object's CustomElementRegistry object.
auto registry = TRY(throw_dom_exception_if_needed(vm, [&] { return window.custom_elements(); }));