-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Labels
A-content/scriptRelated to the script threadRelated to the script thread
Description
Spec: https://html.spec.whatwg.org/multipage/#timer-task-source
Currently, we handle messages coming-in from the timer dispatcher(in the constellation) as a MixedMessage either by the script-thread at
servo/components/script/script_thread.rs
Line 1425 in 2caa227
| recv(self.timer_event_port) -> msg => FromScheduler(msg.unwrap()), |
or the worker at
| recv(timer_event_port) -> msg => worker_scope.from_timer_msg(msg.unwrap()), |
Those message are initially coming over IPC and then routed onto a threaded channel, at
servo/components/script/script_thread.rs
Line 3178 in 2caa227
| ipc_timer_event_port, |
| timer_ipc_port.to_opaque(), |
| let (timer_ipc_chan, _timer_ipc_port) = ipc::channel().unwrap(); |
In all of these cases, we should instead route the incoming IPC message into a task queued using the newly implemented timer-task-source, that should be added to https://github.com/servo/servo/tree/master/components/script/task_source
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-content/scriptRelated to the script threadRelated to the script thread