Bug 219783 - Safari crashes when trying to select HEIC file for input type file accepting png and jpg
Summary: Safari crashes when trying to select HEIC file for input type file accepting ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-12-11 07:52 PST by Joshua Lückers
Modified: 2020-12-14 00:28 PST (History)
1 user (show)

See Also:


Attachments
HTML file with input to reproduce the crash (90 bytes, text/html)
2020-12-11 07:52 PST, Joshua Lückers
no flags Details
Crash log (134.40 KB, text/plain)
2020-12-11 07:56 PST, Joshua Lückers
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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).