mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
introduce "per task source" ignoring of tasks
This commit is contained in:
parent
ce430566cd
commit
671627e97e
21 changed files with 127 additions and 34 deletions
|
@ -70,6 +70,7 @@ use std::ptr::NonNull;
|
|||
use std::slice;
|
||||
use std::str;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use task_source::TaskSourceName;
|
||||
use task_source::networking::NetworkingTaskSource;
|
||||
use time;
|
||||
use timers::{OneshotTimerCallback, OneshotTimerHandle};
|
||||
|
@ -268,7 +269,7 @@ impl XMLHttpRequest {
|
|||
let listener = NetworkListener {
|
||||
context: context,
|
||||
task_source: task_source,
|
||||
canceller: Some(global.task_canceller())
|
||||
canceller: Some(global.task_canceller(TaskSourceName::Networking))
|
||||
};
|
||||
ROUTER.add_route(action_receiver.to_opaque(), Box::new(move |message| {
|
||||
listener.notify_fetch(message.to().unwrap());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue