mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Introduce GlobalScope::pipeline_id
This commit is contained in:
parent
c6ff767625
commit
27f100b1d4
21 changed files with 103 additions and 85 deletions
|
@ -95,11 +95,14 @@ impl ServiceWorkerContainerMethods for ServiceWorkerContainer {
|
|||
return Err(Error::Type("Scope URL contains forbidden characters".to_owned()));
|
||||
}
|
||||
|
||||
let worker_registration = ServiceWorkerRegistration::new(self.global().r().as_global_scope(),
|
||||
let global = self.global();
|
||||
let global = global.r();
|
||||
let global_scope = global.as_global_scope();
|
||||
let worker_registration = ServiceWorkerRegistration::new(global_scope,
|
||||
script_url,
|
||||
scope.clone(),
|
||||
self);
|
||||
ScriptThread::set_registration(scope, &*worker_registration, self.global().r().pipeline_id());
|
||||
ScriptThread::set_registration(scope, &*worker_registration, global_scope.pipeline_id());
|
||||
Ok(worker_registration)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue