New issue
Advanced search Search tips

Issue 844119 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

input[type=file] is garbage-collected while a file chooser is opening

Reported by andr...@cetrez.com, May 17 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36

Steps to reproduce the problem:
1. Click on "open with bug"
2. Select a file (but do not close the dialog)
3. Wait 60 seconds or more
4. "Open" the file (i.e. close the dialog)
5. Change does not trigger as it should

It is important to note that it seems the time from making the selection is an important factor. As you can imagine this is quite slow to debug further, but the above steps reproduces it consistently for me.

However, simply storing a reference to the input somewhere seems to be enough for this problem to go away.

What is the expected behavior?
Change should trigger.

What went wrong?
See above.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 66.0.3359.139  Channel: stable
OS Version: 10.0
Flash Version:
 
file.html
459 bytes View Download
Components: Blink>Forms>File
Labels: Needs-Triage-M66

Comment 3 by tkent@chromium.org, May 18 2018

Labels: -Pri-2 Pri-3
Status: Available (was: Unconfirmed)
Summary: input[type=file] is garbage-collected while a file chooser is opening (was: file-input does not emit onchange in edge-case)
The input element is garbage-collected.

In file_chooser.h:

  WeakPersistent<FileChooserClient> client_;

I think it's ok to change this to the normal Persistent<>.

Sign in to add a comment