- From: Marcos Cáceres <notifications@github.com>
- Date: Mon, 11 Oct 2021 17:10:15 -0700
- To: w3c/manifest <manifest@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/manifest/pull/1013/review/776782571@github.com>
@marcoscaceres commented on this pull request.
> @@ -831,11 +831,12 @@ <h3>
application, it SHOULD treat that manifest as a description of a
distinct application, even if it is served from the same URL as that
of another application. When the user agent sees a manifest where
- |manifest|["id"] [=url/equal|equals=] the [=identity=] of an
- already-installed application, it SHOULD be used as a signal that
- this manifest is a replacement for the already-installed
- application's manifest, and not a distinct application, even if it is
- served from a different URL than the one seen previously.
+ |manifest|["id"] [=URL serializer/exclude fragment|excluding
I think we need to move this part up to the [processing the manifest](https://www.w3.org/TR/appmanifest/#processing) section.
It should go:
21. Process the id member passing json, manifest and document URL.
22. If document's [=processed manifest=] is not `null`:
22.1 If [=processed manifest=]["id"] member is not [=url/equal|equals=] with exclude fragment true to |manifest|["id"], then return. (We might need a note here to clarify if anything should happen when there is a mismatch - it's not an error, we just drop the new manifest on the floor).
22.2 If ???? members have changed, signal to the end user that manifest is a replacement for the already-installed application's manifest.
23. Let document's processed manifest be manifest.
Now 22.2 might have special rules, like:
* How do we actually if the manifest has changed? Do we JSON-serialize them and do text comparisons?
* what happens if the `scope` changes, and the current page is out of scope?
* Is there any situation where we can do a silent update? (e.g., only the theme-color changed... my gut feeling is no).
* If the icons change, do we need to say MUST prompt? What else would should cause a prompt?
Do we need final step "24", that once we have updated the manifest, we need to re-[apply](https://www.w3.org/TR/appmanifest/#applying) the manifest. However, that causes the entire application to reload... what does that mean? Do we need to navigate back to the start URL?
--
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/1013#pullrequestreview-776782571
Received on Tuesday, 12 October 2021 00:10:27 UTC