Firefox can't play HTML5 games which use SharedArrayBuffer 2021-04-22 05:53:47 (edited 2021-04-22 06:06:25)
From what I understand, it appears that Newgrounds does not meet Firefox's security requirements to allow the use of SharedArrayBuffer, and that requirement is adding the following headers:
Cross-Origin-Opener-Policy: same-origin Cross-Origin-Embedder-Policy: require-corp
The security requirements can be found here.
For testing purposes, I created a dummy Godot HTML5 threaded project and uploaded it here.
It runs fine in Chrome, but on Firefox I get the following error in the console (due to SharedArrayBuffer not being available)
Uncaught (in promise) ReferenceError: SharedArrayBuffer is not defined Godot https://uploads.ungrounded.net/tmp/1636000/1636126/file/alternate/alternate_2_r14.zip/index.js:9 doInit https://uploads.ungrounded.net/tmp/1636000/1636126/file/alternate/alternate_2_r14.zip/index.js:604
When could this be fixed?
I'm hoping to submit my game demo on Newgrounds soon, and this is making things rather difficult (game made using Godot Engine, version 3.3 added the HTML5 Threads export option which fixes a lot of issues).
EDIT: this is actually going to be required by Chrome as well, there is a warning in the console when running the same project via Chrome.
[Deprecation] SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021. See https://developer.chrome.com/blog/enabling-shared-array-buffer/ for more details.
