user_28c0a
Chevereto Member
I just noticed that I can no longer upload images to my Chevereto site with WebAssembly disabled. This affects hardened browsers that ship with WebAssembly disabled by default, as well as standard Firefox with it disabled using about:config. There's not even some form of error handling implemented that would show a popup telling the user that WebAssembly is required. Instead, it looks like the upload is taking forever and stuck at 0%. Only the Javascript Console reveals the error related to WebAssembly.
There are very good reasons why users may choose to disable WebAssembly, see here: https://github.com/stevespringett/disable-webassembly Therefore I really want my site to also work without WebAssembly. There are multiple ways how the current situation can be improved:
1. Add a setting for site owners that allows to disable the WebAssembly-related functionality so that uploads work completely without it (preferred)
2. Add a fallback so that uploads still work without the WebAssembly-related functionality if it is detected that the browser doesn't support it (might be implemented instead of 1. or additionally to it)
3. If you don't bother fixing it, please at least add a message showing the user what went wrong instead of letting them wait forever (not a real solution,really prefer 1. or 2. or both)
Reproduction steps
1. Open LibreWolf or Firefox, visit about:config
2. Set javascript.options.wasm to false
3. Restart the browser
4. Visit a Chevereto site
5. Try uploading a image
Unexpected result
"Uploading x files (0% complete)" stays forever, no progress is being made, no error message is shown to the user.
Error log message
Error hashing file: ReferenceError: WebAssembly is not defined
There are very good reasons why users may choose to disable WebAssembly, see here: https://github.com/stevespringett/disable-webassembly Therefore I really want my site to also work without WebAssembly. There are multiple ways how the current situation can be improved:
1. Add a setting for site owners that allows to disable the WebAssembly-related functionality so that uploads work completely without it (preferred)
2. Add a fallback so that uploads still work without the WebAssembly-related functionality if it is detected that the browser doesn't support it (might be implemented instead of 1. or additionally to it)
3. If you don't bother fixing it, please at least add a message showing the user what went wrong instead of letting them wait forever (not a real solution,really prefer 1. or 2. or both)
Reproduction steps
1. Open LibreWolf or Firefox, visit about:config
2. Set javascript.options.wasm to false
3. Restart the browser
4. Visit a Chevereto site
5. Try uploading a image
Unexpected result
"Uploading x files (0% complete)" stays forever, no progress is being made, no error message is shown to the user.
Error log message
Error hashing file: ReferenceError: WebAssembly is not defined