[Webkit-unassigned] [Bug 185086] HTML5 File Picker Photo/Video Cancel does not send any event

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 30 11:09:10 PDT 2018


https://bugs.webkit.org/show_bug.cgi?id=185086

--- Comment #4 from Doug Parker <douglasparker at google.com> ---
Regarding comment 3, it is not always possible to wait for the change event to trigger the UI based on its design.

Consider a UI which requires a photo to proceed. The user can press a take photo button, but then if they cancel it makes sense to show an error message along the lines of: 'This app requires a photo to perform X action'. Such a simple UI like this is fundamentally impossible with the current API.

The "change" event also does not trigger immediately after the camera dismisses, there may be a couple seconds while the photo is processing. In this time, the user could press another button and break application logic by navigating to another screen for instance. The obvious fix for this would be to show a progress ring while taking the photo (which is what my particular app does), but the lack of a "cancel" event means that there is no way to know when the camera is dismissed and that it is safe to hide the progress ring and return to the previous screen.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180430/168695cf/attachment.html>


More information about the webkit-unassigned mailing list