diff --git a/index.html b/index.html index 3fcf9c4ec..0daf65974 100644 --- a/index.html +++ b/index.html @@ -171,6 +171,8 @@

  • [=manifest/icons=]
  • +
  • [=manifest/identity=] +
  • [=manifest/lang=]
  • [=manifest/name=] @@ -232,6 +234,7 @@

    "sizes": "128x128" }], "scope": "/", + "id": "superracer", "start_url": "/start.html", "display": "fullscreen", "orientation": "landscape", @@ -811,6 +814,189 @@

    +
    +

    + `id` member +

    +

    + The [=manifest's=] id member is a string that represents + the identity for the application. The [=identity=] takes + the form of a URL, which is same origin as the start URL. +

    +

    + The [=identity=] is used by user agents to uniquely identify the + application universally. When the user agent sees a manifest with an + [=identity=] that does not correspond to an already-installed + 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. +

    +

    + The [=identity=] can be used by a service that collects lists of web + applications to uniquely identify applications. +

    +

    + The [=identity=] is processed like a URL but it doesn't point to a + resource that can be navigated to, so it's not required to be + [=URL/within scope=]. +

    +

    + To process the `id` member, given [=object=] |json:JSON|, + [=ordered map=] |manifest:ordered map|: +

    +
      +
    1. Set |manifest|["id"] to |manifest|["start_url"]. +
    2. +
    3. If the type of |json|["id"] is not [=string=], return. +
    4. +
    5. If |json|["id"] is the empty string, return. +
    6. +
    7. Let |base origin| be |manifest|["start_url"]'s [=url/origin=]. +
    8. +
    9. Let |id:URL| be the result of [=URL Parser|parsing=] |json|["id"] + with |base origin| as the base URL. +
    10. +
    11. If |id| is failure, return. +
    12. +
    13. If |id| is not [=same origin=] as |manifest|["start_url"], + return. +
    14. +
    15. Set |manifest|["id"] to |id|. +
    16. +
    + +

    `theme_color` member @@ -1093,6 +1279,9 @@

  • [=Process the `start_url` member=] passing |json|, |manifest|, |manifest URL|, and |document URL|.
  • +
  • [=Process the `id` member=] passing |json|, |manifest| and + |document URL|. +
  • [=Process the `scope` member=] passing |json|, |manifest|, and |manifest URL|.