aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/serviceworkerregistration.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-10-01 03:44:05 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-10-06 20:59:11 +0200
commitfe6fca9e1fe94fcefb61a1cde1812d575f164ace (patch)
treec4d0f3e55e23bbc3a932ba0cc121fe1de63495e6 /components/script/dom/serviceworkerregistration.rs
parent14a0b8d88c7def8a247603cb8548e50087acdbc9 (diff)
downloadservo-fe6fca9e1fe94fcefb61a1cde1812d575f164ace.tar.gz
servo-fe6fca9e1fe94fcefb61a1cde1812d575f164ace.zip
Introduce GlobalScope::devtools_chan
Diffstat (limited to 'components/script/dom/serviceworkerregistration.rs')
-rw-r--r--components/script/dom/serviceworkerregistration.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/serviceworkerregistration.rs b/components/script/dom/serviceworkerregistration.rs
index bc089c18dac..09c23570243 100644
--- a/components/script/dom/serviceworkerregistration.rs
+++ b/components/script/dom/serviceworkerregistration.rs
@@ -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
}
}