mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -31,6 +31,7 @@ use servo_url::ServoUrl;
|
|||
use std::mem;
|
||||
use std::rc::Rc;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use task_source::TaskSourceName;
|
||||
|
||||
struct FetchContext {
|
||||
fetch_promise: Option<TrustedPromise>,
|
||||
|
@ -154,7 +155,7 @@ pub fn Fetch(global: &GlobalScope, input: RequestInfo, init: RootedTraceableBox<
|
|||
let listener = NetworkListener {
|
||||
context: fetch_context,
|
||||
task_source: global.networking_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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue