Bug 196287 - [iOS] File upload picker/popover is not dismissed when Escape or Command + . is pressed; can never activate again after pressing Escape on iPhone
Summary: [iOS] File upload picker/popover is not dismissed when Escape or Command + . ...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: Safari 12
Hardware: iPhone / iPad iOS 12
: P2 Normal
Assignee: Nobody
Keywords: InRadar, PlatformOnly
Depends on:
Blocks: 190571
  Show dependency treegraph
Reported: 2019-03-26 21:08 PDT by Daniel Bates
Modified: 2019-03-26 21:17 PDT (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2019-03-26 21:08:53 PDT
Seen on iOS.

On iPad, pressing Escape or Command + . when the file upload popover is open does nothing. But I would have expected it to dismiss the popover.

(*) On iPhone, pressing Command + . when the file upload picker is open does nothing. Pressing the Escape key dismisses the picker but now I cannot activate the picker again by tapping it. In fact, I can't even re-open the picker after reload. I needed to quit Safari!

Steps to reproduce (for those that can't be bothered to reads above or for machine in the all of us :D):

Ensure you have a hardware keyboard attached to your iPhone or iPad.

1. Visit <data:text/html,<input type="file">>
2. Tap the file input to open the picker/popup.
3. Press Escape on the keyboard (or Command + .)

Then nothing happens or you get into a bad state on iPhone (see remark (*)) if you pressed Escape. Anyway, the expected result is that the picker/popover is dismissed and you can re-activate it by tapping again.
Comment 1 Radar WebKit Bug Importer 2019-03-26 21:11:05 PDT