mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Rename Reflectable::global_scope to global
This commit is contained in:
parent
b6bbd41e11
commit
d8e92bb271
37 changed files with 151 additions and 151 deletions
|
@ -58,7 +58,7 @@ impl ServiceWorkerContainerMethods for ServiceWorkerContainer {
|
|||
script_url: USVString,
|
||||
options: &RegistrationOptions) -> Fallible<Root<ServiceWorkerRegistration>> {
|
||||
let USVString(ref script_url) = script_url;
|
||||
let api_base_url = self.global_scope().api_base_url();
|
||||
let api_base_url = self.global().api_base_url();
|
||||
// Step 3-4
|
||||
let script_url = match api_base_url.join(script_url) {
|
||||
Ok(url) => url,
|
||||
|
@ -96,7 +96,7 @@ impl ServiceWorkerContainerMethods for ServiceWorkerContainer {
|
|||
return Err(Error::Type("Scope URL contains forbidden characters".to_owned()));
|
||||
}
|
||||
|
||||
let global = self.global_scope();
|
||||
let global = self.global();
|
||||
let worker_registration = ServiceWorkerRegistration::new(&global,
|
||||
script_url,
|
||||
scope.clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue