mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Remove ShadowRealm HTML integration
This commit is contained in:
committed by
Shannon Booth
parent
f27bc38aa7
commit
bb0f244667
Notes:
github-actions[bot]
2026-04-05 11:58:52 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/bb0f244667d Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8753
@@ -2908,7 +2908,7 @@ static void generate_html_constructor(SourceGenerator& generator, IDL::Construct
|
||||
}
|
||||
|
||||
constructor_generator.append(R"~~~(
|
||||
auto& window = as<HTML::Window>(HTML::current_principal_global_object());
|
||||
auto& window = as<HTML::Window>(HTML::current_global_object());
|
||||
|
||||
// 1. If NewTarget is equal to the active function object, then throw a TypeError.
|
||||
if (&new_target == vm.active_function_object())
|
||||
|
||||
@@ -433,7 +433,7 @@ void add_@global_object_snake_name@_exposed_interfaces(JS::Object& global)
|
||||
{
|
||||
static constexpr u8 attr = JS::Attribute::Writable | JS::Attribute::Configurable;
|
||||
|
||||
[[maybe_unused]] bool is_secure_context = HTML::is_secure_context(HTML::relevant_principal_settings_object(global));
|
||||
[[maybe_unused]] bool is_secure_context = HTML::is_secure_context(HTML::relevant_settings_object(global));
|
||||
[[maybe_unused]] bool expose_experimental_interfaces = HTML::UniversalGlobalScopeMixin::expose_experimental_interfaces();
|
||||
)~~~");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user