processing / processing/p5.js-web-editor
Cannot create a SharedArrayBuffer
Open
Nobody has claimed this yet.
Bug
Type:Task
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 1.7k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 8
Description
Details about the bug:
- Web browser and version: Edge 108.0.1462.54
- Operating System: Windows
- Steps to reproduce this: https://editor.p5js.org/pflannery/sketches/RwHhvso2I
When trying to create a SharedArrayBuffer an error message is displayed
SharedArrayBuffer is not defined
In order to enable SharedArrayBuffer the server needs the following headers:
- Cross-Origin-Opener-Policy with "same-origin" (protects your origin from attackers)
- Cross-Origin-Embedder-Policy with "require-corp" (protects victims from your origin)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked reproduction sketch and verify the SharedArrayBuffer error in Edge. Read the linked MDN security requirements, then locate the server configuration responsible for response headers. Done means the required Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers are present and the sketch can create a SharedArrayBuffer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- security, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100