Manifest, Notifications, Payment Handler, Credential Management, and Background Fetch all have the concept of a list of icons + metadata, and the browser fetches the most appropriate one.
There’s a lot of repetition in these spec, so I’m proposing we abstract it out into its own spec.
The discussion started here https://github.com/w3c/manifest/pull/710.
I guess the spec could be “Image Resource”, and would cover:
- The structure of an image resource.
- Selecting an appropriate image resource from a list.
- Fetching the resource.
Each of these will have hooks allowing specs to tweak the fetching, extend the interface, and tweak the criteria for selecting a resource.