New issue
Advanced search Search tips

Issue 839287 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: Bug


Previous locations:
v8:7686


Sign in to add a comment

WebAssembly call javascript to open file chooser

Reported by liuluoli...@gmail.com, Apr 25 2018

Issue description

Version: <66.0.3359.117 64bit>
OS: <Windows 10>
Architecture: <x64>

What steps will reproduce the problem?
1.webassembly call javascript function
2.the js function get the button by id
3.then trigger the click event

What is the expected output?
The file chooser pops up

What do you see instead?
Like nothing happened, and no error appears in the dev console 

Please use labels and text to provide additional information.


 
The code works on Firefox Quantum and Microsoft Edge...
Please attach your sample file.
Project: chromium
Moved issue v8:7686 to now be  issue chromium:839287 .
Status: Unconfirmed (was: Untriaged)
Labels: Needs-Triage-M66
i create a demo project with WebAssembly Studio, here is the link https://webassembly.studio/?f=hz31xi3xdsu

If it doesn't work, please check the attached file.
wasm-project-7kqg9btjpjj.zip
2.9 KB Download
Components: Blink>Forms>File
I don't believe you can have the file picker come up by dispatching a click at the control. Plain javascript doesn't make it work; let alone using web assembly.
But the demo works perfectly on Firefox quantum and Microsoft edge...

Le vendredi 4 mai 2018, dtapu… via monorail <
monorail+v2.2182922724@chromium.org> a écrit :

Comment 9 by tkent@chromium.org, May 6 2018

Status: WontFix (was: Unconfirmed)
I confirmed the demo didn't work with Safari and Firefox nightly.

.click() opens a file chooser only if it is called in user gesture event handler.  e.g. 'click' event handler.

Sign in to add a comment