이 문서를 언급한 문서들16
- WorkerDOMWorkerDOM doesn't use SharedArrayBuffer, most likely to Spectre.
- Snowpack으로 WASM 시작하기... 다만 Safari와 Firefox에서는 작동되지 않았다. "SharedArrayBuffer is not defined"이라는 오류가 발생했다.
- Providing DOM API to Worker Threads- Sends SAB when clicking the _Send SAB ...
- Proposal of Research 2023-03-28... such as Web Workers, SharedArrayBuffer, and WebAssembly, iiframe will revolutionize ...
- Proposal of Research 2023-01-10... race conditions, we need a SharedArrayBuffer and Atomic operations.
- Atomics (JavaScript)- SharedArrayBuffer를 이용해 Web Worker 사이 메모리를 ...
- 2023-02-16... modern browser technologies like SharedArrayBuffer, which makes it impossible to ...
- 2022-08-03... synchronously using Atomics (JavaScript) and SharedArrayBuffer.
- 2022-07-25- [x] Allocate a SharedArrayBuffer inside `transferSync`.
- 2022-07-21... - Allocate a SharedArrayBuffer inside `transferSync`.
- 2022-07-19... - Web Worker Thread `transferSync`에서 SAB를 하나 할당한다
- 2022-07-12... - This involves SAB
- 2022-07-11... but is internally made with SharedArrayBuffer.
- 2022-06-27... more about Atomics (JavaScript) and SharedArrayBuffer
- 2022-06-26- Explore SharedArrayBuffer, Atomic, and WorkerDOM's Binary DOM ...
- 2022-06-22... - WorkerDOM will harness SharedArrayBuffer.
SharedArrayBuffer
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.
const sab = new SharedArrayBuffer(1024)
worker.postMessage(sab)
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)