Bug 256429

Summary: Add to home screen falls back to system default icon
Product: WebKit Reporter: fesexe8648
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: kevin_turner, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Unspecified   
OS: Unspecified   

Description fesexe8648 2023-05-07 06:59:00 PDT
Providing a manifest icon with sizes 512x512 type image/png and no purpose set.

The icon is no longer used when adding to home screen, instead I get the new system default icon (first letter of the app name).

I also include other icons and formats in the manifest icon stack both png and svg, maskable and sizes any (if something of that makes it break?)

It worked up until I updated to iOS 16.4.

The web app validates in Chrome lighthouse and is installable / adds to homescreen on other platforms with Chrome and Firefox.
Comment 1 Radar WebKit Bug Importer 2023-05-14 06:59:19 PDT
<rdar://problem/109321062>
Comment 2 fesexe8648 2023-05-14 07:08:39 PDT
Update. Removing the SVG icons in the manifest made it work again, and the PNG is added to home screen. So the issue seem to be when a SVG is included in the manifest, no icon is picked, not even a valid PNG, and it chooses the default system icon.
Comment 3 Kevin Turner 2023-12-11 11:56:01 PST
Hi! Would you be able to include more details? 
e.g. the application manifest in use, the icon(s) you're having issues with.
If publicly accessible, including the URL of the web app would be great. If not, even a small reproduction project would be helpful for us to debug this particular configuration. Thank you!