diff options
Diffstat (limited to 'components/script/dom/serviceworker.rs')
-rw-r--r-- | components/script/dom/serviceworker.rs | 10 |
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); } |