Append to ChromeClientQt::runOpenPanel and QWebPage to implement the "accept" attribute. Convert from a MIME Type list into a QFileDialog filter string.
Now that I have seen https://bugs.webkit.org/show_bug.cgi?id=51043 and the FileChooser API I wonder if our existing API for the file picker is just not future proof. If we have to add an extension to QWebPage for each change of FileChooser, our API might get uglier and uglier with time. I don't know if other changes are planned. Maybe the solution is to have a new slot like this: bool QWebPage::chooseFileOrDirectory(const QWebFilePickerOption &). Please consider having a look at this API for WebKit 2 as well when fixing the bug :)
See also bug 45079.
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.