Bug 164716
| Summary: | [GTK] Cannot activate file input from web extension | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | antoyo <bouanto> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bugs-noreply, mcatanzaro |
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | PC | ||
| OS: | Linux | ||
antoyo
Hello.
I wonder how to use the function `webkit_dom_html_input_element_set_files` because it seems there is no way to create a WebKitDOMFileList.
If it is not possible to set the files with this method, is there a way to click on an input[type="file"] from a web extension (`webkit_dom_html_element_click()` does not work. Using dispatch_event() with a mouse click event does not work either. It seems there is a different behaviour between Chromium (Blink) and WebKit2: using click() does work on Chromium, but not on WebKit2. Is it normal?)?
Or is there a way to set the value of an input[type="file"] from a string in a web extension?
Thanks.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |