mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
Implement trusted types for setTimeout/setInterval (#38736)
I had a difficult time figuring out where the relevant steps had to be added. Therefore, I aggressively commented the spec steps so eventually I discovered where I should add them. Part of #36258 --------- Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com> Signed-off-by: Tim van der Lippe <TimvdLippe@users.noreply.github.com> Co-authored-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
parent
a31235e52b
commit
4de9a9d100
16 changed files with 149 additions and 120 deletions
|
@ -2894,7 +2894,8 @@ impl GlobalScope {
|
|||
arguments: Vec<HandleValue>,
|
||||
timeout: Duration,
|
||||
is_interval: IsInterval,
|
||||
) -> i32 {
|
||||
can_gc: CanGc,
|
||||
) -> Fallible<i32> {
|
||||
self.timers().set_timeout_or_interval(
|
||||
self,
|
||||
callback,
|
||||
|
@ -2902,6 +2903,7 @@ impl GlobalScope {
|
|||
timeout,
|
||||
is_interval,
|
||||
self.timer_source(),
|
||||
can_gc,
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue