mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +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
@@ -63,11 +63,11 @@ static JS::ThrowCompletionOr<JS::Value> execute_a_function_body(HTML::BrowsingCo
|
||||
if (!rust_compilation.has_value() || rust_compilation->is_error())
|
||||
return JS::js_null();
|
||||
|
||||
// 6. Prepare to run a script with realm.
|
||||
HTML::prepare_to_run_script(realm);
|
||||
// 6. Prepare to run script with environment settings.
|
||||
HTML::prepare_to_run_script(environment_settings);
|
||||
|
||||
// 7. Prepare to run a callback with environment settings.
|
||||
HTML::prepare_to_run_callback(realm);
|
||||
HTML::prepare_to_run_callback(environment_settings);
|
||||
|
||||
// 8. Let function be the result of calling FunctionCreate.
|
||||
auto function = JS::ECMAScriptFunctionObject::create_from_function_data(
|
||||
@@ -82,10 +82,10 @@ static JS::ThrowCompletionOr<JS::Value> execute_a_function_body(HTML::BrowsingCo
|
||||
auto completion = JS::call(realm.vm(), *function, window, parameters);
|
||||
|
||||
// 10. Clean up after running a callback with environment settings.
|
||||
HTML::clean_up_after_running_callback(realm);
|
||||
HTML::clean_up_after_running_callback(environment_settings);
|
||||
|
||||
// 11. Clean up after running a script with realm.
|
||||
HTML::clean_up_after_running_script(realm);
|
||||
// 11. Clean up after running a script with environment settings.
|
||||
HTML::clean_up_after_running_script(environment_settings);
|
||||
|
||||
// 12. Return completion.
|
||||
return completion;
|
||||
|
||||
Reference in New Issue
Block a user