Bug 219783

Summary: Safari crashes when trying to select HEIC file for input type file accepting png and jpg
Product: WebKit Reporter: Joshua Lückers <joshualuckers>
Component: ImagesAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
HTML file with input to reproduce the crash
none
Crash log none

Description Joshua Lückers 2020-12-11 07:52:53 PST
Created attachment 415996 [details]
HTML file with input to reproduce the crash

Safari crashes when trying to select HEIC file for input type file accepting png and jpg.

Example input: <input type="file" accept=".png,.jpg" />

To reproduce:
- Open example HTML in Safari
- Try to select a HEIC image
- Safari crashes

This happens with Safari on iOS and macOS as well as Technology Preview Safari.
Comment 1 Joshua Lückers 2020-12-11 07:56:27 PST
Created attachment 415997 [details]
Crash log
Comment 2 Alexey Proskuryakov 2020-12-12 17:33:35 PST
Which iOS version are you seeing this with?

On macOS at least, this was fixed in an underlying system framework in macOS Big Sur (see rdar://problem/59589723 for Apple employees).

Perhaps we should prevent form inputs from accepting HEIC on older macOS versions.

rdar://problem/70942158
Comment 3 Joshua Lückers 2020-12-14 00:28:09 PST
I'm no longer able to reproduce this on iOS Safari (14.2.1).