In early 2018, the Spectre and Meltdown vulnerabilities were discovered. In response, browser manufacturers disabled SharedArrayBuffer
by default. Some of the recipes in this chapter require this feature. This recipe demonstrates how to enable them in Chrome.
- Open Chrome.
- Navigate to
chrome://flags/
. - Click
I accept the risk!
- Search for
shared
. - Select
Enabled
for the optionExperimental enabled SharedArrayBuffer support in JavaScript.
- Click
RELAUNCH NOW
:
By default, shared memory is disabled in Firefox, but the options let developers activate these (potentially insecure) features without exposing normal users to them. You can read more about Meltdown and Spectre at:https://meltdownattack.com/.
You should not leave this feature enabled after you finish experimenting with it.