webui icon indicating copy to clipboard operation
webui copied to clipboard

Some browsers fail to load files from VFS (only Firefox works correctly)

Open triuk opened this issue 2 months ago • 10 comments

I created a minimal example of some assets, I'd need in the future and observed that Brave, WebView, and Chromium fail to display the chart and custom slider, and parts of the UI do not function properly. Only Firefox loads everything as expected. The problem occurs on both Windows and Linux.

After checking the developer tools in Chromium, I found that several JavaScript files are not being loaded:

Image

As shown above, files that are supposed to be inside the include directory are missing when running in Chromium-based browsers.

My C++ example project is available here: https://gitlab.com/uklaad/example-webui-cpp

To reproduce the issue, simply modify the line 22 (show_browser) in src/app.cpp

For reference, the Python version of the same works without any issues across all tested browsers: https://gitlab.com/uklaad/example-webui-python

triuk avatar Nov 18 '25 21:11 triuk