SharedArrayBuffer
Warning
Over a year old. May be outdated
SharedArrayBuffer is an object that holds a fixed-length binary buffer.
You can pass around comparably longer data with SharedArrayBuffer between agents (i.e., main thread and worker.)
A change in one ShardArrayBuffer will reflect on the other side.
The Spectre vulnerability seized ShardArrayBuffer in 2018, and since 2020, ShardArrayBuffer requires a Secure Context to run.
For the host document, I need two headers to enable ShardArrayBuffer.
Cross-Origin-Opener-Policywithsame-originas value (protects your origin from attackers)Cross-Origin-Embedder-Policywithrequire-corpas value (protects victims from your origin)
Backlinks17
Proposal of Research 2023-03-28230216Proposal of Research 2023-01-10Snowpack으로 WASM 시작하기Web Standard Mini App Problems220803Providing DOM API to Worker Threads220725220721220719220712220711220627220626Atomics (JavaScript)220622WorkerDOM