input[type=file] is garbage-collected while a file chooser is opening
Reported by
andr...@cetrez.com,
May 17 2018
|
|||
Issue descriptionUserAgent: 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:
,
May 18 2018
,
May 18 2018
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 |
|||
Comment 1 by dtapu...@chromium.org
, May 17 2018