New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 679242 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

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


 
no-select-in-chrome-sometimes.html
653 bytes View Download
no-select-in-chrome-sometimes.exe
1.2 MB Download
Cc: brajkumar@chromium.org
Labels: Needs-Feedback
Tested this issue on Windows-10 using chrome latest stable M55-55.0.2883.87 and chrome latest canary M57-57.0.2976.0 by following steps mentioned below.

1. Navigated to no-select-in-chrome-sometimes.html
2. Clicked on select file
3. From the opened dialog box selected .kml file and clicked on open
4. Observed the .kml file get's selected
5. Repeated step-2 to step-3 at least for 15 times and observed step-4 behavior continuously.

yangzhougogo@ Attaching screenshot for reference, could you please confirm is this is the expected behavior of the issue?

Thanks!

679242.PNG
55.5 KB View Download

Comment 2 by ajha@chromium.org, Jan 19 2017

Components: Blink>Forms>File
Labels: Needs-Triage-M55

Comment 3 by tkent@chromium.org, Jan 20 2017

Status: WontFix (was: Unconfirmed)
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.

Comment 4 by tkent@chromium.org, Jan 20 2017

Owner: tkent@chromium.org

Sign in to add a comment