-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WASM] IndexDB dependency breaks app if run under latest Tor alpha: [IndexedDB not available: A mutation operation was attempted on a database that did not allow mutations.] #34102
Comments
That's a relatively niche use case, and I'd tend to say that it works as intended, huge JS games in the browser is definitely something that privacy-minded Tor users should avoid. Still, it should be possible to have things work without filesystem access indeed, so IDBFS could be made opt-out. Relevant code is here: As we can see IDBFS support is already optional, but the way Tor blocks it is probably not handled gracefully. |
This was supported in Godot 2.x, but has been removed in Godot 3.0 thanks to WebAssembly support becoming widespread enough. That said, someone made a pull request to reintegrate asm.js support due to Safari iOS' WebAssembly support being problematic. |
Hi @Calinou ,
I remember that. Somewhere I have a 2d test project on it.
Agreed. Safari is the problematic child of the WWW, but even more (and remaining in the rotten corpses league) I was thinking about IE11. As a side note asm.js could be an escape plan for the day when again some serious sec flaw will be discovered in wasm. --R |
I think there are tools more suited than Godot to make Web applications. I wouldn't see it as a priority 🙂 |
Indeed it's not. short somehow OT:
Fun! It seems taken straight from the Rant Department! Before we get rid of IE11 in 2025 (maybe), two other major browsers will drop stone dead, or will be emasculated like Edge. --R |
@akien-mga partially, Tor browser still doesn't work since it does not support AudioContext. |
@Faless We should still attempt to fail gracefully in this case (if possible). Other than that, I don't think we can support HTML5 exports in Tor Browser either. |
Godot version:
3.1.2 / 3.2b1 / git-pulled latest as well
OS/device including version:
app built as web wasm / testing on Tor 9.5a2 desktop / (with godot on ubuntu server 18.04)
Issue description:
Steps to reproduce:
IndexedDB not available: A mutation operation was attempted on a database that did not allow mutations.
(The app will work with Brave Browser Tor impl. since Brave is more relaxed).
Minimal reproduction project:
Here: If it works it shows a button
It takes some time to load. More than the usual abysmal since is a debug build.
For the impatient here there are two
Screenshots
On Tor alpha 2 :
On Brave + Tor network:
Volunteering and other considerations
IndexedDB writes on disk, so the Tor Project has severely limited it.
Besides, I don't see a real reason to use it as mandatory in a web-based application.
I know the Godot devs are overwhelmed with issues to fix and features to implement so,
time permitting, I'd like to give a hand.
Just a start: is there any document with the exports modules rationale or some pointers to where in the code export modules are implemented?
Thank you for the time and the fantastic work!
Roberto
The text was updated successfully, but these errors were encountered: