Bug 164716 - [GTK] Cannot activate file input from web extension
Summary: [GTK] Cannot activate file input from web extension
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-14 11:03 PST by antoyo
Modified: 2016-11-19 17:05 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description antoyo 2016-11-14 11:03:58 PST
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.