According to Mozilla, there is no browser on iOS supporting the cross-origin-opener-policy, which is one of the security requirements for enabling a SharedArrayBuffer. Does this mean I cannot use a SharedArrayBuffer for any web-application on the iOS platform?
6 Answers
actually it says on the Caniuse site that you can enable the feature, but I have found no documentation to this end re: Safari
2 Comments
Unfortunately SharedArrayBuffer was disabled due to Spectre / Meltdown issues, so no, you cannot use it:
1 Comment
There's a flag you can enable now in Safari:
Resurrected SharedArrayBuffer and Atomics behind a flag (JSC_useSharedArrayBuffer=1) (r269531)
1 Comment
To complete user3325025 and Alexander's answer, you can open Safari with SharedArrayBuffer enabled by typing the following command in the terminal:
__XPC_JSC_useSharedArrayBuffer=1 open -a "Safari"
Here is a list of browsers that support SharedArrayBuffer: https://caniuse.com/sharedarraybuffer
Comments
If the user has upgraded to Safari 15.2, SharedArrayBuffer can be enabled with COOP and COEP headers. See this documentation page.
1 Comment
Safari Technology Preview recently announced it can enable SharedArrayBuffer when the page is cross-origin isolated. https://webkit.org/blog/11975/release-notes-for-safari-technology-preview-133/
There are certain requirements to enable cross-origin isolation. Learn more here: https://web.dev/coop-coep/