mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Introduce GlobalScope::devtools_chan
This commit is contained in:
parent
14a0b8d88c
commit
fe6fca9e1f
8 changed files with 33 additions and 38 deletions
|
@ -57,13 +57,15 @@ impl ServiceWorkerRegistration {
|
|||
pipeline_id: Some(global.pipeline_id())
|
||||
};
|
||||
|
||||
let worker_id = global.as_global_scope().get_next_worker_id();
|
||||
let global_scope = global.as_global_scope();
|
||||
let worker_id = global_scope.get_next_worker_id();
|
||||
let devtools_chan = global_scope.devtools_chan().cloned();
|
||||
let init = prepare_workerscope_init(global, None);
|
||||
ScopeThings {
|
||||
script_url: script_url,
|
||||
init: init,
|
||||
worker_load_origin: worker_load_origin,
|
||||
devtools_chan: global.devtools_chan(),
|
||||
devtools_chan: devtools_chan,
|
||||
worker_id: worker_id
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue