Make file dialogs work in <webview>, fixes #930