Describe the bug
WebKit's WKWebView needs an implementation of WKUIDelegate for some interactions that require native UI bits, such as:
- JS alerts and prompts (
alert(), confirm(), prompt())
- File dialogs, e.g. when clicking on an
<input type="file">
Neutralino does not provide such a delegate (see webview.h). Accordingly, the above browser features do not work on macOS (nothing happens).
To reproduce
- Create a new Neutralino project.
- Add
<input type="file"> to the HTML.
- Add
alert('foo') call to the JavaScript code.
- Run the app with
neu run.
Expected behavior
- I can see a dialog saying "foo" when I start the app.
- Clicking on the file input opens a file dialog.
Actual behavior
- No dialog is shown.
- Clicking on the file input does nothing (but dragging a file from Finder to the file input works).
Specifications
- OS: macOS 12.6 arm64
- Neutralinojs version: v4.8.0
- Neutralinojs client library version: v3.7.0
- Neutralinojs CLI version: v9.3.1
Additional context
Follow-up of neutralinojs/neutralinojs#1005.
Describe the bug
WebKit's WKWebView needs an implementation of WKUIDelegate for some interactions that require native UI bits, such as:
alert(),confirm(),prompt())<input type="file">Neutralino does not provide such a delegate (see
webview.h). Accordingly, the above browser features do not work on macOS (nothing happens).To reproduce
<input type="file">to the HTML.alert('foo')call to the JavaScript code.neu run.Expected behavior
Actual behavior
Specifications
Additional context
Follow-up of neutralinojs/neutralinojs#1005.