SharedArray support in Firefox

44 views
Skip to first unread message

Larry Kosher

unread,
Aug 7, 2020, 12:36:42 PM8/7/20
to emscripte...@googlegroups.com
Hello.
It seems that the support has been reenabled in Firefox for SharedArrayBuffer:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBufferHowever my project still throws an error when I try to run it in the latest Mozilla browser. Is there a workaround?
Best regards,
Larry
--
Hiisi.
Registered Linux User #487982. Be counted at: https://linuxcounter.net/
--
Spandex is a privilege, not a right.

Alon Zakai

unread,
Aug 7, 2020, 12:45:51 PM8/7/20
to emscripte...@googlegroups.com
What is the error?

If it's COOP/COEP-related, then you need to set up your webserver properly,


Here is how the test suite does it:


--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAPZcXwZK0O9tW%2BWaPOLThXWReCD8NgOnRGMxSpUKT-f6mxUWBw%40mail.gmail.com.

Floh

unread,
Aug 7, 2020, 1:51:13 PM8/7/20
to emscripten-discuss
Btw, does anybody know if the same can be achieved without manipulating the web server? Maybe through some HTML head element? There are many hosting solution which don't allow changing the response headers (e.g. github pages), and even if the hosting solution isn't under external control, it's still not usually under control of the 'product team' (maybe a different department in the same company, maybe an external publishing partner, maybe a separate CDN provider in front of the web server).

IMHO this will be such a PITA that I realldy don't know if it makes sense depending on WASM features which require specific response headers to work.


On Friday, 7 August 2020 18:45:51 UTC+2, Alon Zakai wrote:
What is the error?

If it's COOP/COEP-related, then you need to set up your webserver properly,


Here is how the test suite does it:


On Fri, Aug 7, 2020 at 9:36 AM Larry Kosher <saip...@gmail.com> wrote:
Hello.
It seems that the support has been reenabled in Firefox for SharedArrayBuffer:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBufferHowever my project still throws an error when I try to run it in the latest Mozilla browser. Is there a workaround?
Best regards,
Larry
--
Hiisi.
Registered Linux User #487982. Be counted at: https://linuxcounter.net/
--
Spandex is a privilege, not a right.

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.

Brion Vibber

unread,
Aug 7, 2020, 1:57:09 PM8/7/20
to emscripten Mailing List
As far as I remember from reading up on it, there is no in-HTML equivalent; you are simply required to have control over the HTTP(S) server in order to do threading.

Note that <meta http-equiv> is not a general-purpose header substitution system, but a shortlist of several specific features that can be specified which doesn't include arbitrary new HTTP headers: https://html.spec.whatwg.org/multipage/semantics.html#pragma-directives

-- brion

On Fri, Aug 7, 2020 at 10:51 AM Floh <flo...@gmail.com> wrote:
Btw, does anybody know if the same can be achieved without manipulating the web server? Maybe through some HTML head element? There are many hosting solution which don't allow changing the response headers (e.g. github pages), and even if the hosting solution isn't under external control, it's still not usually under control of the 'product team' (maybe a different department in the same company, maybe an external publishing partner, maybe a separate CDN provider in front of the web server).

IMHO this will be such a PITA that I realldy don't know if it makes sense depending on WASM features which require specific response headers to work.


On Friday, 7 August 2020 18:45:51 UTC+2, Alon Zakai wrote:
What is the error?

If it's COOP/COEP-related, then you need to set up your webserver properly,


Here is how the test suite does it:


On Fri, Aug 7, 2020 at 9:36 AM Larry Kosher <saip...@gmail.com> wrote:
Hello.
It seems that the support has been reenabled in Firefox for SharedArrayBuffer:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBufferHowever my project still throws an error when I try to run it in the latest Mozilla browser. Is there a workaround?
Best regards,
Larry
--
Hiisi.
Registered Linux User #487982. Be counted at: https://linuxcounter.net/
--
Spandex is a privilege, not a right.

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/941ab635-4a5e-4088-94f1-d5d88b8de93bo%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages