1

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?

sideshowbarker
  • 81,827
  • 26
  • 193
  • 197
Jack
  • 2,229
  • 2
  • 23
  • 37

6 Answers6

1

Unfortunately SharedArrayBuffer was disabled due to Spectre / Meltdown issues, so no, you cannot use it:

https://caniuse.com/#feat=sharedarraybuffer

ColinE
  • 68,894
  • 15
  • 164
  • 232
  • Yes, I noticed that, yet hoped there was some special set of requirements that made it possible, as has been done with other platforms. Hopefully, this issue will be rectified soon. – Jack Aug 09 '20 at 16:10
1

actually it says on the Caniuse site that you can enable the feature, but I have found no documentation to this end re: Safari

user3325025
  • 654
  • 7
  • 10
1

There's a flag you can enable now in Safari:

Resurrected SharedArrayBuffer and Atomics behind a flag (JSC_useSharedArrayBuffer=1) (r269531)

https://trac.webkit.org/changeset/269531/webkit/

Alexander
  • 1,554
  • 2
  • 16
  • 23
1

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

ilpianoforte
  • 1,180
  • 1
  • 10
  • 28
1

If the user has upgraded to Safari 15.2, SharedArrayBuffer can be enabled with COOP and COEP headers. See this documentation page.

Marco Bonelli
  • 63,369
  • 21
  • 118
  • 128
haroon
  • 11
  • 1
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/30839702) – tomerpacific Jan 24 '22 at 16:11
0

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/

agektmr
  • 2,144
  • 15
  • 14