mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Replace instances of old ServiceWorker specification URL with new one
The old specification URL is https://slightlyoff.github.io/ServiceWorker/spec/service_worker/ has been replaced by the new one at https://w3c.github.io/ServiceWorker/.
This commit is contained in:
parent
1d5a05d112
commit
3bf5813096
97 changed files with 115 additions and 116 deletions
|
@ -83,22 +83,22 @@ pub fn longest_prefix_match(stored_scope: &Url, potential_match: &Url) -> bool {
|
|||
}
|
||||
|
||||
impl ServiceWorkerRegistrationMethods for ServiceWorkerRegistration {
|
||||
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-registration-installing-attribute
|
||||
// https://w3c.github.io/ServiceWorker/#service-worker-registration-installing-attribute
|
||||
fn GetInstalling(&self) -> Option<Root<ServiceWorker>> {
|
||||
self.installing.as_ref().map(|sw| Root::from_ref(&**sw))
|
||||
}
|
||||
|
||||
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-registration-active-attribute
|
||||
// https://w3c.github.io/ServiceWorker/#service-worker-registration-active-attribute
|
||||
fn GetActive(&self) -> Option<Root<ServiceWorker>> {
|
||||
self.active.as_ref().map(|sw| Root::from_ref(&**sw))
|
||||
}
|
||||
|
||||
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-registration-waiting-attribute
|
||||
// https://w3c.github.io/ServiceWorker/#service-worker-registration-waiting-attribute
|
||||
fn GetWaiting(&self) -> Option<Root<ServiceWorker>> {
|
||||
self.waiting.as_ref().map(|sw| Root::from_ref(&**sw))
|
||||
}
|
||||
|
||||
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-registration-scope-attribute
|
||||
// https://w3c.github.io/ServiceWorker/#service-worker-registration-scope-attribute
|
||||
fn Scope(&self) -> USVString {
|
||||
USVString(self.scope.clone())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue