mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
net: Make most of the resource task messages serializable.
This commit is contained in:
parent
7e77285745
commit
9c9d7dc93b
15 changed files with 373 additions and 105 deletions
|
@ -181,8 +181,8 @@ impl DedicatedWorkerGlobalScope {
|
|||
let serialized_url = url.serialize();
|
||||
let parent_sender_for_reporter = parent_sender.clone();
|
||||
let global = DedicatedWorkerGlobalScope::new(
|
||||
url, id, mem_profiler_chan.clone(), devtools_chan, runtime.clone(), resource_task,
|
||||
constellation_chan, parent_sender, own_sender, receiver);
|
||||
url.0, id, mem_profiler_chan.clone(), devtools_chan, runtime.clone(),
|
||||
resource_task, constellation_chan, parent_sender, own_sender, receiver);
|
||||
// FIXME(njn): workers currently don't have a unique ID suitable for using in reporter
|
||||
// registration (#6631), so we instead use a random number and cross our fingers.
|
||||
let reporter_name = format!("worker-reporter-{}", random::<u64>());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue