Safari tab reloads/crashes when "Take Photo" option is used with <input type="file">

Originator:jonsibley
Number:rdar://22127654 Date Originated:August 3, 2015
Status:Open Resolved:
Product:Safari Product Version:iOS 8.4
Classification: Reproducible:Always
 
Summary:
This issue occurs by simply adding a photo file with the iPhone 6 or 6 Plus camera to an <input type=form">

I've put together a simple sample code: http://output.jsbin.com/jawisu/8

This is 100% reproducible on and iPhone 6 and 6 Plus on iOS 8.4 when enough tabs are opened (brought into memory).

Steps to Reproduce:
1. Open many tabs with various websites (at least 8)
2. Open the sample code website in Mobile Safari (http://output.jsbin.com/jawisu/8)
3. Tap the "Choose File" button, and use the device's camera to attach a photo (the "Take Photo" option).

Expected Results:
I expected the file reference to be contained in the <input type="file"> DOM node.

Actual Results:
The Safari tab reloads and a small pane appears at the top saying "A problem occurred with this webpage so it was reloaded"

Version:
iOS 8.4

Notes:
Please contact me if there is a known workaround.

Configuration:
iPhone 6 and iPhone 6 Plus

Attachments:

Comments

Still an issue as of 2024

I've tried adding a name attribute per https://stackoverflow.com/questions/29225824/mobile-safari-crashing-while-capturing-photo-using-input-type-file but no luck

By sam.barnum at Feb. 14, 2024, 12:22 a.m. (reply...)

I see this behavior on newer phones as well.

By peter.vertenten at April 2, 2020, 2:40 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!