Re: [w3c/manifest] Add support for 'serviceworkers' member (#507)

@kenchris, [Start Register](https://w3c.github.io/ServiceWorker/#start-register) is a gate function that you can invoke to trigger a [Register](https://w3c.github.io/ServiceWorker/#start-register). Invoking Start Register makes a job and schedules it in the job queue defined in SW. Start Register is also supposed to take care of the security check and parsing the URLs for the given src and scope, etc. Basically, a register request is processed async given a promise (to Start Register).

I'm not quite sure, but you might want to invoke Start Register from [steps for processing the serviceworker member](https://rawgit.com/w3c/manifest/4a5f762812a15c81f7c2b7f4f37831410031f4da/index.html#dfn-steps-for-processing-the-serviceworker-member) I guess. Start Register returns nothing but the given promise to it resolves with a [service worker registration](https://w3c.github.io/ServiceWorker/#dfn-service-worker-registration) on success and rejects on failure. (See the example call site: In https://w3c.github.io/ServiceWorker/#link-element-processing, step 12 of the algorithm starting with "When a serviceworker link’s link element ..".)

This is basically what SW expects for a register request. I think we should look together if any changes are needed while you're working on this PR.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/pull/507#issuecomment-266659551

Received on Tuesday, 13 December 2016 06:40:08 UTC