mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -52,7 +52,6 @@ pub fn init() {
|
|||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptSetViewport);
|
||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptWebSocketEvent);
|
||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptWorkerEvent);
|
||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ScriptXhrEvent);
|
||||
maybe_create_heartbeat(&mut hbs, ProfilerCategory::ApplicationHeartbeat);
|
||||
unsafe {
|
||||
HBS = Some(mem::transmute(Box::new(hbs)));
|
||||
|
|
|
@ -102,7 +102,6 @@ impl Formattable for ProfilerCategory {
|
|||
ProfilerCategory::ScriptTimerEvent => "Script Timer Event",
|
||||
ProfilerCategory::ScriptWebSocketEvent => "Script Web Socket Event",
|
||||
ProfilerCategory::ScriptWorkerEvent => "Script Worker Event",
|
||||
ProfilerCategory::ScriptXhrEvent => "Script Xhr Event",
|
||||
ProfilerCategory::ApplicationHeartbeat => "Application Heartbeat",
|
||||
};
|
||||
format!("{}{}", padding, name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue