mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibWeb: Change HTML::Script to hold a realm instead of settings object
This is part of a refactor needed for introduction of the shadow realm proposal in the web platform.
This commit is contained in:
parent
0382933a0a
commit
da18551f10
Notes:
github-actions[bot]
2024-11-02 00:56:21 +00:00
Author: https://github.com/shannonbooth
Commit: da18551f10
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1955
Reviewed-by: https://github.com/ADKaster ✅
17 changed files with 164 additions and 155 deletions
|
@ -384,10 +384,10 @@ i32 WindowOrWorkerGlobalScopeMixin::run_timer_initialization_steps(TimerHandler
|
|||
// done by eval(). That is, module script fetches via import() will behave the same in both contexts.
|
||||
}
|
||||
|
||||
// 7. Let script be the result of creating a classic script given handler, settings object, base URL, and fetch options.
|
||||
// 7. Let script be the result of creating a classic script given handler, realm, base URL, and fetch options.
|
||||
// FIXME: Pass fetch options.
|
||||
auto basename = base_url.basename();
|
||||
auto script = ClassicScript::create(basename, source, settings_object, move(base_url));
|
||||
auto script = ClassicScript::create(basename, source, this_impl().realm(), move(base_url));
|
||||
|
||||
// 8. Run the classic script script.
|
||||
(void)script->run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue