mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibWeb/HTML: Use WorkerGlobalScope as Trusted Type sink global name
Corresponds to https://github.com/whatwg/html/pull/10913
This commit is contained in:
parent
7da3b06e3e
commit
f0c597a446
Notes:
github-actions[bot]
2025-01-30 15:01:37 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/f0c597a446c Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3404
1 changed files with 2 additions and 2 deletions
|
@ -298,8 +298,8 @@ i32 WindowOrWorkerGlobalScopeMixin::run_timer_initialization_steps(TimerHandler
|
|||
[&](String const& source) {
|
||||
// 1. If previousId was not given:
|
||||
if (!previous_id.has_value()) {
|
||||
// 1. Let globalName be "Window" if global is a Window object; "Worker" otherwise.
|
||||
auto global_name = is<Window>(this_impl()) ? "Window"sv : "Worker"sv;
|
||||
// 1. Let globalName be "Window" if global is a Window object; "WorkerGlobalScope" otherwise.
|
||||
auto global_name = is<Window>(this_impl()) ? "Window"sv : "WorkerGlobalScope"sv;
|
||||
|
||||
// 2. Let methodName be "setInterval" if repeat is true; "setTimeout" otherwise.
|
||||
auto method_name = repeat == Repeat::Yes ? "setInterval"sv : "setTimeout"sv;
|
||||
|
|
Loading…
Add table
Reference in a new issue