Safari iOS 6: Unexpected rotation behavior when taking picture in web-clip

Originator:jonathan
Number:rdar://12917041 Date Originated:20-Dec-2012 01:54 PM
Status:Open Resolved:
Product:iPad Product Version:iOS 6.0.1
Classification:Serious Bug Reproducible:Always
 
Summary:
When you try to take a picture for file upload on a "apple-mobile-web-app-capable" website (opened from your Home Screen), screen rotation behaves unexpectedly.

Steps to Reproduce:
1) Open a website with the "apple-mobile-web-app-capable" meta tag and a file type input in Safari on iOS (see attached demo file).
2) Add the site to your Home Screen (tap the Share button, tap "Add to Home Screen" and tap "Add").
3) Make sure Rotation Lock is disabled (using the side switch or via the button in the multitasking bar).
4) Open the site by tapping the icon on your Home Screen.
5) Tap the file type input and choose "Take Photo or Video".
6) Rotate your iPad to another orientation.

Expected Results:
7) Screen rotates according to the orientation of the device.

Actual Results:
7) Screen doesn't rotate according to the orientation of the device. You end up with rotated or cropped image. Try experimenting with different rotations and starting orientations (e.g., loading the website initially in portrait or landscape). The results will be weird.

Regression:
This problem occurs on my iPad WiFi + 4G (3rd gen.) and iPad mini, both on iOS 6.0 and 6.0.1. The problem does not occur on my iPhone 5.

Notes:
Attached is a basic HTML file which can be used to reproduce the problem. You could also load it directly from my web server (I'll leave it there for a while): **REMOVED**.

Comments

Attached file

This HTML file was attached to the report: http://cl.ly/code/1P191R2e052i


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!