WebAssembly call javascript to open file chooser
Reported by
liuluoli...@gmail.com,
Apr 25 2018
|
|||||
Issue descriptionVersion: <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.
,
May 3 2018
Please attach your sample file.
,
May 3 2018
,
May 3 2018
,
May 4 2018
,
May 4 2018
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.
,
May 4 2018
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.
,
May 6 2018
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 :
,
May 6 2018
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 |
|||||
Comment 1 by liuluoli...@gmail.com
, Apr 25 2018