Bug 164716

Summary: [GTK] Cannot activate file input from web extension
Product: WebKit Reporter: antoyo <bouanto>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: WebKit Local Build   
Hardware: PC   
OS: Linux   

antoyo
Reported 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.
Attachments
Note You need to log in before you can comment on or make changes to this bug.