aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/serviceworker.rs
diff options
context:
space:
mode:
authorVignesh Sarma K (വിഘ്നേഷ് ശ൪മ കെ) <vignesh.sarma@gmail.com>2016-09-25 20:32:32 +0530
committerVignesh Sarma K (വിഘ്നേഷ് ശ൪മ കെ) <vignesh.sarma@gmail.com>2016-09-25 20:32:32 +0530
commit3bf581309638ddef2bcad0ad0e1f180d28f97eb5 (patch)
tree4b5c028e43748a91ad07632ff6c80c0615cf912c /components/script/dom/serviceworker.rs
parent1d5a05d112fb7063fdcec603da2ddf0cecc0a8ac (diff)
downloadservo-3bf581309638ddef2bcad0ad0e1f180d28f97eb5.tar.gz
servo-3bf581309638ddef2bcad0ad0e1f180d28f97eb5.zip
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/.
Diffstat (limited to 'components/script/dom/serviceworker.rs')
-rw-r--r--components/script/dom/serviceworker.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/serviceworker.rs b/components/script/dom/serviceworker.rs
index 9c37d73bd9e..8abcec513ce 100644
--- a/components/script/dom/serviceworker.rs
+++ b/components/script/dom/serviceworker.rs
@@ -70,17 +70,17 @@ impl ServiceWorker {
}
impl ServiceWorkerMethods for ServiceWorker {
- // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-state-attribute
+ // https://w3c.github.io/ServiceWorker/#service-worker-state-attribute
fn State(&self) -> ServiceWorkerState {
self.state.get()
}
- // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-url-attribute
+ // https://w3c.github.io/ServiceWorker/#service-worker-url-attribute
fn ScriptURL(&self) -> USVString {
USVString(self.script_url.borrow().clone())
}
- // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-postmessage
+ // https://w3c.github.io/ServiceWorker/#service-worker-postmessage
fn PostMessage(&self, cx: *mut JSContext, message: HandleValue) -> ErrorResult {
// Step 1
if let ServiceWorkerState::Redundant = self.state.get() {
@@ -94,10 +94,10 @@ impl ServiceWorkerMethods for ServiceWorker {
Ok(())
}
- // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-container-onerror-attribute
+ // https://w3c.github.io/ServiceWorker/#service-worker-container-onerror-attribute
event_handler!(error, GetOnerror, SetOnerror);
- // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#ref-for-service-worker-onstatechange-attribute-1
+ // https://w3c.github.io/ServiceWorker/#ref-for-service-worker-onstatechange-attribute-1
event_handler!(statechange, GetOnstatechange, SetOnstatechange);
}