mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Execute XHR timeout callbacks directly. (Fixes #8468.)
This commit is contained in:
parent
12f6ba29a7
commit
7623e89506
5 changed files with 6 additions and 36 deletions
|
@ -236,7 +236,6 @@ pub enum ScriptTaskEventCategory {
|
|||
SetViewport,
|
||||
WebSocketEvent,
|
||||
WorkerEvent,
|
||||
XhrEvent,
|
||||
}
|
||||
|
||||
/// Messages used to control the script event loop
|
||||
|
@ -954,7 +953,6 @@ impl ScriptTask {
|
|||
ScriptTaskEventCategory::TimerEvent => ProfilerCategory::ScriptTimerEvent,
|
||||
ScriptTaskEventCategory::WebSocketEvent => ProfilerCategory::ScriptWebSocketEvent,
|
||||
ScriptTaskEventCategory::WorkerEvent => ProfilerCategory::ScriptWorkerEvent,
|
||||
ScriptTaskEventCategory::XhrEvent => ProfilerCategory::ScriptXhrEvent,
|
||||
};
|
||||
profile(profiler_cat, None, self.time_profiler_chan.clone(), f)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue