mirror of
https://github.com/servo/servo.git
synced 2025-07-04 05:53:39 +01:00
Remove ScopeThings::pipeline_id
It can be retrieved through its init field.
This commit is contained in:
parent
1aebe9fde6
commit
d02a615fcc
3 changed files with 1 additions and 4 deletions
|
@ -60,7 +60,6 @@ impl ServiceWorkerRegistration {
|
||||||
let init = prepare_workerscope_init(global, None);
|
let init = prepare_workerscope_init(global, None);
|
||||||
ScopeThings {
|
ScopeThings {
|
||||||
script_url: script_url,
|
script_url: script_url,
|
||||||
pipeline_id: global.pipeline_id(),
|
|
||||||
init: init,
|
init: init,
|
||||||
worker_load_origin: worker_load_origin,
|
worker_load_origin: worker_load_origin,
|
||||||
devtools_chan: global.devtools_chan(),
|
devtools_chan: global.devtools_chan(),
|
||||||
|
|
|
@ -87,7 +87,7 @@ impl ServiceWorkerManager {
|
||||||
title: title,
|
title: title,
|
||||||
url: scope_things.script_url.clone(),
|
url: scope_things.script_url.clone(),
|
||||||
};
|
};
|
||||||
let _ = chan.send(ScriptToDevtoolsControlMsg::NewGlobal((scope_things.pipeline_id,
|
let _ = chan.send(ScriptToDevtoolsControlMsg::NewGlobal((scope_things.init.pipeline_id,
|
||||||
Some(scope_things.worker_id)),
|
Some(scope_things.worker_id)),
|
||||||
devtools_sender,
|
devtools_sender,
|
||||||
page_info));
|
page_info));
|
||||||
|
|
|
@ -151,8 +151,6 @@ pub enum ScriptMsg {
|
||||||
pub struct ScopeThings {
|
pub struct ScopeThings {
|
||||||
/// script resource url
|
/// script resource url
|
||||||
pub script_url: Url,
|
pub script_url: Url,
|
||||||
/// pipeline which requested the activation
|
|
||||||
pub pipeline_id: PipelineId,
|
|
||||||
/// network load origin of the resource
|
/// network load origin of the resource
|
||||||
pub worker_load_origin: WorkerScriptLoadOrigin,
|
pub worker_load_origin: WorkerScriptLoadOrigin,
|
||||||
/// base resources required to create worker global scopes
|
/// base resources required to create worker global scopes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue