Hello, we're testing the "WPE WebKit for Mir Kiosk" snap and encountered an issue on clicking on a web site having a button which shows a file input dialog. This seems to be not supported by the used WPEWebKit browser running in Kiosk mode. Is there any option to prevent the browser from crashing? We would expect all IO dialogs to be not shown, because of security reasons. What is the default behavior of file input & file save dialogs here? 109978 Segmentation fault "$SNAP"/usr/bin/cog "${cog_params[@]}" "$url" This is the JavaScript code trying to show the input element: showFileinputDialog(): void { const e = document.getElementById('idFileInput'); const event = new MouseEvent('click', { bubbles: false }); e.dispatchEvent(event); }
You'll want to handle the WebKitWebView::run-file-chooser signal and return TRUE to stop the file chooser from being opened. Regarding the crash, please post a stack trace, following the instructions at https://handbook.gnome.org/issues/stack-traces.html (although these instructions don't cover snap; hopefully snap has some tool or instructions for how to get a backtrace)
We can't reproduce the issue with official WPE WebKit 2.42.5 and it's stable tagged components mentioned here: https://wpewebkit.org/release/ You can close this.