One of the main reasons for using webviews in desktop apps is to avoid sending sensitive data over the network. For eg, in our open-source project DevToolbox, we want to embed CyberChef while loading it locally.
When I tried using a file:/// URL in the webview.open(), it did not work (probably because of app sandboxing). No errors were shown, but a blank webview opened with the right size.

It would be very useful to see an example of a local HTML file from the app bundle/assets loaded in the webview (with Javascript support).
One of the main reasons for using webviews in desktop apps is to avoid sending sensitive data over the network. For eg, in our open-source project DevToolbox, we want to embed CyberChef while loading it locally.
When I tried using a file:/// URL in the
webview.open(), it did not work (probably because of app sandboxing). No errors were shown, but a blank webview opened with the right size.It would be very useful to see an example of a local HTML file from the app bundle/assets loaded in the webview (with Javascript support).