diff options
author | Vignesh Sarma K (വിഘ്നേഷ് ശ൪മ കെ) <vignesh.sarma@gmail.com> | 2016-09-25 20:32:32 +0530 |
---|---|---|
committer | Vignesh Sarma K (വിഘ്നേഷ് ശ൪മ കെ) <vignesh.sarma@gmail.com> | 2016-09-25 20:32:32 +0530 |
commit | 3bf581309638ddef2bcad0ad0e1f180d28f97eb5 (patch) | |
tree | 4b5c028e43748a91ad07632ff6c80c0615cf912c /components/script | |
parent | 1d5a05d112fb7063fdcec603da2ddf0cecc0a8ac (diff) | |
download | servo-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')
-rw-r--r-- | components/script/dom/client.rs | 6 | ||||
-rw-r--r-- | components/script/dom/navigator.rs | 2 | ||||
-rw-r--r-- | components/script/dom/serviceworker.rs | 10 | ||||
-rw-r--r-- | components/script/dom/serviceworkercontainer.rs | 4 | ||||
-rw-r--r-- | components/script/dom/serviceworkerglobalscope.rs | 2 | ||||
-rw-r--r-- | components/script/dom/serviceworkerregistration.rs | 8 | ||||
-rw-r--r-- | components/script/dom/webidls/Client.webidl | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/Navigator.webidl | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/ServiceWorker.webidl | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/ServiceWorkerContainer.webidl | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/ServiceWorkerGlobalScope.webidl | 2 | ||||
-rw-r--r-- | components/script/dom/webidls/ServiceWorkerRegistration.webidl | 2 |
12 files changed, 22 insertions, 22 deletions
diff --git a/components/script/dom/client.rs b/components/script/dom/client.rs index d800d6f55e0..74ed61a52a7 100644 --- a/components/script/dom/client.rs +++ b/components/script/dom/client.rs @@ -41,17 +41,17 @@ impl Client { } impl ClientMethods for Client { - // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#client-url-attribute + // https://w3c.github.io/ServiceWorker/#client-url-attribute fn Url(&self) -> USVString { self.url.clone() } - // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#client-frametype + // https://w3c.github.io/ServiceWorker/#client-frametype fn FrameType(&self) -> FrameType { self.frame_type } - // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#client-id + // https://w3c.github.io/ServiceWorker/#client-id fn Id(&self) -> DOMString { let uid_str = format!("{}", self.id); DOMString::from_string(uid_str) diff --git a/components/script/dom/navigator.rs b/components/script/dom/navigator.rs index b2a4fa81b3b..ce97c30ae60 100644 --- a/components/script/dom/navigator.rs +++ b/components/script/dom/navigator.rs @@ -103,7 +103,7 @@ impl NavigatorMethods for Navigator { false } - // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#navigator-service-worker-attribute + // https://w3c.github.io/ServiceWorker/#navigator-service-worker-attribute fn ServiceWorker(&self) -> Root<ServiceWorkerContainer> { self.service_worker.or_init(|| ServiceWorkerContainer::new(self.global().r())) } 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); } diff --git a/components/script/dom/serviceworkercontainer.rs b/components/script/dom/serviceworkercontainer.rs index 73e19690e2e..abeb69f2ea3 100644 --- a/components/script/dom/serviceworkercontainer.rs +++ b/components/script/dom/serviceworkercontainer.rs @@ -48,12 +48,12 @@ impl Controllable for ServiceWorkerContainer { } impl ServiceWorkerContainerMethods for ServiceWorkerContainer { - // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-container-controller-attribute + // https://w3c.github.io/ServiceWorker/#service-worker-container-controller-attribute fn GetController(&self) -> Option<Root<ServiceWorker>> { return self.controller.get() } - // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-container-register-method + // https://w3c.github.io/ServiceWorker/#service-worker-container-register-method fn Register(&self, script_url: USVString, options: &RegistrationOptions) -> Fallible<Root<ServiceWorkerRegistration>> { diff --git a/components/script/dom/serviceworkerglobalscope.rs b/components/script/dom/serviceworkerglobalscope.rs index d3cb268e7df..f6208b63586 100644 --- a/components/script/dom/serviceworkerglobalscope.rs +++ b/components/script/dom/serviceworkerglobalscope.rs @@ -334,6 +334,6 @@ unsafe extern "C" fn interrupt_callback(cx: *mut JSContext) -> bool { } impl ServiceWorkerGlobalScopeMethods for ServiceWorkerGlobalScope { - // https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-global-scope-onmessage-attribute + // https://w3c.github.io/ServiceWorker/#service-worker-global-scope-onmessage-attribute event_handler!(message, GetOnmessage, SetOnmessage); } diff --git a/components/script/dom/serviceworkerregistration.rs b/components/script/dom/serviceworkerregistration.rs index d246dc4423b..6daec5d9647 100644 --- a/components/script/dom/serviceworkerregistration.rs +++ b/components/script/dom/serviceworkerregistration.rs @@ -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()) } diff --git a/components/script/dom/webidls/Client.webidl b/components/script/dom/webidls/Client.webidl index c125cf491ef..59595057ca1 100644 --- a/components/script/dom/webidls/Client.webidl +++ b/components/script/dom/webidls/Client.webidl @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#client +// https://w3c.github.io/ServiceWorker/#client [Pref="dom.serviceworker.enabled", Exposed=(Window,Worker)] interface Client { diff --git a/components/script/dom/webidls/Navigator.webidl b/components/script/dom/webidls/Navigator.webidl index ba24348b7f8..91290d8333b 100644 --- a/components/script/dom/webidls/Navigator.webidl +++ b/components/script/dom/webidls/Navigator.webidl @@ -33,7 +33,7 @@ interface NavigatorBluetooth { readonly attribute Bluetooth bluetooth; }; -// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#navigator-service-worker +// https://w3c.github.io/ServiceWorker/#navigator-service-worker partial interface Navigator { [SameObject, Pref="dom.serviceworker.enabled"] readonly attribute ServiceWorkerContainer serviceWorker; }; diff --git a/components/script/dom/webidls/ServiceWorker.webidl b/components/script/dom/webidls/ServiceWorker.webidl index 0d0855f4239..219c25bcd52 100644 --- a/components/script/dom/webidls/ServiceWorker.webidl +++ b/components/script/dom/webidls/ServiceWorker.webidl @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// http://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-obj +// http://w3c.github.io/ServiceWorker/#service-worker-obj [Pref="dom.serviceworker.enabled", Exposed=(Window,Worker)] interface ServiceWorker : EventTarget { readonly attribute USVString scriptURL; diff --git a/components/script/dom/webidls/ServiceWorkerContainer.webidl b/components/script/dom/webidls/ServiceWorkerContainer.webidl index ea4a6962cfb..45fb25063ff 100644 --- a/components/script/dom/webidls/ServiceWorkerContainer.webidl +++ b/components/script/dom/webidls/ServiceWorkerContainer.webidl @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-container +// https://w3c.github.io/ServiceWorker/#service-worker-container [Pref="dom.serviceworker.enabled", Exposed=(Window,Worker)] interface ServiceWorkerContainer : EventTarget { [Unforgeable] readonly attribute ServiceWorker? controller; diff --git a/components/script/dom/webidls/ServiceWorkerGlobalScope.webidl b/components/script/dom/webidls/ServiceWorkerGlobalScope.webidl index 35e4b98f9d5..9259c3d64c4 100644 --- a/components/script/dom/webidls/ServiceWorkerGlobalScope.webidl +++ b/components/script/dom/webidls/ServiceWorkerGlobalScope.webidl @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-global-scope +// https://w3c.github.io/ServiceWorker/#service-worker-global-scope [Global=(Worker,ServiceWorker), Exposed=ServiceWorker, Pref="dom.serviceworker.enabled"] diff --git a/components/script/dom/webidls/ServiceWorkerRegistration.webidl b/components/script/dom/webidls/ServiceWorkerRegistration.webidl index 2910a85befa..27c27d7cc41 100644 --- a/components/script/dom/webidls/ServiceWorkerRegistration.webidl +++ b/components/script/dom/webidls/ServiceWorkerRegistration.webidl @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-registration-obj +// https://w3c.github.io/ServiceWorker/#service-worker-registration-obj [Pref="dom.serviceworker.enabled", Exposed=(Window,Worker)] interface ServiceWorkerRegistration : EventTarget { [Unforgeable] readonly attribute ServiceWorker? installing; |