From a987d3f95c43d02972784f47a1556e7b8d563bf5 Mon Sep 17 00:00:00 2001
From: Marcos Caceres
- Each manifest image resource is an [=image resource=] that
- is conceptually part of a web application, suitable to use in various
- contexts depending on the semantics of the member that is using the
- object (e.g., an icon that is part of an application menu, etc.).
+ Each manifest image resource is an [=image resource=]. The
+ context in which an manifest image resource is presented is determnined
+ by the semantics of the associated manifest member (e.g., an
+ [=manifest/icons=] member is generally used to represent the
+ application icon).
A [=manifest image resource=] differs from a [=image resource=] in that
it can have an additional [=manifest image resource/purpose=] member.
- User agents MAY modify the images associated with an [=manifest image
- resource=] to better match the platform’s visual style before
+ User agents MAY modify the images associated with a [=manifest image
+ resource=] to better match the platform's visual style before
displaying it to the user, for example by rounding the corners or
painting it in a specific color. It is recommended that developers
prepare their image resources for such scenarios to avoid losing
important information through, e.g., change of color or clipped
corners.
+ User agents MAY [=fetch=] an [=manifest image resource=] by running the
+ [=fetching an image resource=] algorithm. Alternatively, the user agent
+ MAY delegate [=fetch|fetching=] [=manifest image resources=] to the
+ underlying platform. How the underlying platform fetches a manifest
+ image resource is outside the scope of this specification.
+
- The security policy that governs whether a user agent can
- fetch an icon image is governed by the `img-src` directive [[CSP3]]
- associated with the manifest's owner {{Document}}.
-
Manifest image resources
`purpose` member
@@ -2086,53 +2094,6 @@
- Content security policy
-
-
Icon masks and safe zone
From 30a8bdb60689a126f609dd8674ee21da1f50d960 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
corners.
- User agents MAY [=fetch=] an [=manifest image resource=] by running the - [=fetching an image resource=] algorithm. Alternatively, the user agent - MAY delegate [=fetch|fetching=] [=manifest image resources=] to the - underlying platform. How the underlying platform fetches a manifest - image resource is outside the scope of this specification. + User agents MUST [=fetch=] an [=manifest image resource=] by running the + [=fetching an image resource=] algorithm.
Each manifest image resource is an [=image resource=]. The - context in which an manifest image resource is presented is determnined + context in which a manifest image resource is presented is determined by the semantics of the associated manifest member (e.g., an [=manifest/icons=] member is generally used to represent the application icon). @@ -1983,7 +1983,7 @@
- User agents MUST [=fetch=] an [=manifest image resource=] by running the + User agents MUST [=fetch=] a [=manifest image resource=] by running the [=fetching an image resource=] algorithm.
+ The security policy that governs whether a user agent can + fetch an icon image is governed by the `img-src` directive [[CSP3]] + associated with the manifest's owner {{Document}}. +
+ +- User agents MUST [=fetch=] a [=manifest image resource=] by running the - [=fetching an image resource=] algorithm. + To fetch a manifest image resource given a [=manifest image + resource=] |image| and an [=application manifest=] |manifest|:
+The [=processing a manifest=] steps are invoked by [[HTML]]'s - processing steps for the [^link^] element, but MAY also be invoked - by the user agent to process a manifest without an associated - [=document=]. + processing steps for the [^link^] element, in which case + |client| is the [=document=]'s [=relevant settings object=]. + The steps MAY also be invoked by the user agent to process a + manifest without an associated [=document=], in which case + |client| is null.
In this case, to match the guarantees made by the corresponding
From f2767e897d8e7a633776f90759cee67547e7c4d4 Mon Sep 17 00:00:00 2001
From: Marcos Caceres
The steps for processing a manifest are given by the following
algorithm. The algorithm takes a [=URL=] |document URL:URL|, a
- [=URL=] |manifest URL:URL|, a [=byte sequence=] |bodyBytes|, and an
- optional [=environment settings object=] |client|.
+ [=URL=] |manifest URL:URL|, a [=byte sequence=] |bodyBytes|, and
+ |client| (an [=environment settings object=] or null).
To fetch a manifest image resource given a [=manifest image - resource=] |image| and an [=application manifest=] |manifest|: + resource=] |image| and an [=application manifest=] |manifest|, return + either the result of [=fetching an image resource=] or null:
(invalid HTML nesting) - Fix data-cite casing: "service-workers" → "SERVICE-WORKERS" - Add data-cite="SERVICE-WORKERS" to note scoping service worker refs - Drop stale -1 suffix: "SERVICE-WORKERS-1" → "SERVICE-WORKERS" - Reformat long lines from tidy --- index.html | 83 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 43 insertions(+), 40 deletions(-) diff --git a/index.html b/index.html index 3a6c9903..cb48d612 100644 --- a/index.html +++ b/index.html @@ -1131,12 +1131,11 @@
`background_color` member is a
[=manifest/themeable member=] that describes the expected background
- color of the web application. It repeats what is
- already available in the application stylesheet but can be used by
- the user agent to draw the background color of a web
- application for which the manifest is known before the files are
- actually available, whether they are fetched from the network or
- retrieved from disk.
+ color of the web application. It repeats what is already available in
+ the application stylesheet but can be used by the user agent
+ to draw the background color of a web application for which the
+ manifest is known before the files are actually available, whether
+ they are fetched from the network or retrieved from disk.
The [=manifest/background_color=] member is only meant to improve the @@ -1507,18 +1506,20 @@
The [=manifest's=] color_scheme_dark member is an [=ordered
- map=] whose keys are [=manifest/themeable members=] and whose
- values are the overriding color values for those members when the
- operating system uses a dark color theme.
+ map=] whose keys are [=manifest/themeable members=] and whose values
+ are the overriding color values for those members when the operating
+ system uses a dark color theme.
A themeable member is one of the following [=manifest=] members: -
When [=applying=] a manifest and the operating system uses a dark color theme, for each [=manifest/themeable member=] |member| that @@ -1561,8 +1562,8 @@
The [=processing a manifest=] steps are invoked by [[HTML]]'s - processing steps for the [^link^] element, in which case - |client| is the [=document=]'s [=relevant settings object=]. - The steps MAY also be invoked by the user agent to process a - manifest without an associated [=document=], in which case - |client| is null. + processing steps for the [^link^] element, in which case |client| + is the [=document=]'s [=relevant settings object=]. The steps MAY + also be invoked by the user agent to process a manifest without an + associated [=document=], in which case |client| is null.
In this case, to match the guarantees made by the corresponding @@ -1817,22 +1818,23 @@
- A user agent MAY also [=apply=] a manifest to an existing [=top-level - browsing context=]. If the [=navigable/active document=]'s - [=Document/URL=] is [=manifest/within scope=] of the manifest, the - existing [=top-level browsing context=] becomes an [=application - context=]. If the [=Document/URL=] is not [=manifest/within scope=], - the resulting behavior is implementation-defined. + A user agent MAY also [=apply=] a manifest to an existing + [=top-level browsing context=]. If the [=navigable/active + document=]'s [=Document/URL=] is [=manifest/within scope=] of the + manifest, the existing [=top-level browsing context=] becomes an + [=application context=]. If the [=Document/URL=] is not + [=manifest/within scope=], the resulting behavior is + implementation-defined.
Some user agents might [=apply=] a manifest to the existing [=top-level browsing context=] from which installation was - initiated. If the [=navigable/active document=]'s [=Document/URL=] - is not [=manifest/within scope=] of the manifest's - [=manifest/navigation scope=], one possible behavior is that the - [=application context=] initially exists at an out-of-scope - [=Document/URL=]. + initiated. If the [=navigable/active document=]'s + [=Document/URL=] is not [=manifest/within scope=] of the + manifest's [=manifest/navigation scope=], one possible behavior + is that the [=application context=] initially exists at an + out-of-scope [=Document/URL=].