Re: [w3c/manifest] Add id member to manifest (#988)

@philloooo commented on this pull request.



> +        application. When the user agent sees a manifest with an |identity|
+        matching that 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.
+        </p>
+        <p>
+          The |identity| MAY be used by a service that collects lists of web
+          applications to uniquely identify applications.
+        </p>
+        <p>
+          To <dfn>process the `id` member</dfn>, given [=object=]
+          |json:JSON|, [=ordered map=] |manifest:ordered map|:
+        </p>
+        <ol class="algorithm">
+          <li>Set |manifest|["id"] to |manifest|["start_url"].

#670 changes the default value to manifest's base path. I think alternatively I can update the start_url processing algorithm here to just describe what's happending in all user agents now. Which is do 
```
Set |manifest|["start_ur"] to |document URL:URL| 
``` 
in the beginning of the processing alrogithm, to make it clear that when it's undefined, default to document_url
WDYT?

-- 
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/988#discussion_r688803793

Received on Friday, 13 August 2021 22:07:05 UTC