Select File Bug: After the file browser dialog is closed, nothing would happen on the web page randomly.
Reported by
yangzhou...@gmail.com,
Jan 9 2017
|
||||
Issue description
Chrome Version : 55.0.2883.87 m (64-bit)
Other browsers tested:
Canary: FAIL (57.0.2976.0 canary (64-bit))
Firefox: OK (50.1.0)
EDGE: OK (38.14393.0.0)
What steps will reproduce the problem?
(1) Create a select file input element in a pure HTML(5) page, assign an "accept" property as a file format like '.kml'.
(2) Click this file select element, then select any .kml file after the dialog shows up.
(3) Repeat the #2 steps to select any(could be same) .kml file over and over again (maybe 10 times or 30 times).
(4) Then you may notice SOMETIMES nothing happened(selected) on page after the dialog close even you've selected file
What is the expected result?
Apparently, the selected file should be on the page every time after the dialog closed.
What happens instead?
Some select file won't success, which means nothing will show up in page UI.
Notes:
I create a very simple page and a test video. I can recreate this bug stable in Chrome 55, 56 and 57. Again, the try times are randomly, we need select file many times.
Thanks,
Troy
,
Jan 19 2017
,
Jan 20 2017
Works as expected. After executing test() function, no one has a reference to |input| object. So, If garbage-collection happens before file selection is done, the |input| object disappears. Workaround would be: - Make |input| variable global, or - Append |input| to the document tree.
,
Jan 20 2017
|
||||
►
Sign in to add a comment |
||||
Comment 1 by brajkumar@chromium.org
, Jan 9 2017Labels: Needs-Feedback
55.5 KB
55.5 KB View Download