Re: [w3c/manifest] Make Service Worker registration work properly (don't use outdated steps) (#792)

@marcoscaceres While I'm on a roll with Manifest...

1. I need a bit of help with ReSpec. (General ReSpec comments appreciated; I've been trying out the new (?) `|var|.{{Method}}` syntax.) I tried to add a reference to [RegistrationOptions.type](https://www.w3.org/TR/service-workers-1/#dom-registrationoptions-type) using "`for="RegistrationOptions"`" (the "for" clause working well for all the other methods and members). But I get a conflict with the other definition of ECMAScript's `Type()` function. I thought "for" was supposed to disambiguate it by saying "this `type` is for `RegistrationOptions` only" but it still conflicts.
2. This is a bit nasty but it's in the current text too: (the old text reads: "the state of the settled promise determines whether the installation succeeded or not") --- the fact that if service worker registration fails, the whole installation is aborted, even though service worker registration is optional. So some user agents will not bother to register a (failing) SW, thus successfully installing, and others will try to register the SW and fail the install. Is that "okay" (essentially making a best effort to check, but you don't have to check). Or should we succeed the install even if SW registration fails, for consistency across user agents?

-- 
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/792#issuecomment-531093125

Received on Friday, 13 September 2019 04:26:56 UTC