Bug 269208 - [GLib] Enable SharedArrayBuffer?
Summary: [GLib] Enable SharedArrayBuffer?
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-12 10:29 PST by Philippe Normand
Modified: 2024-02-13 06:08 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Normand 2024-02-12 10:29:54 PST
Why is that disabled by default?

Workaround is to set this env var: JSC_useSharedArrayBuffer=true
Comment 1 Philippe Normand 2024-02-12 10:39:58 PST
Just reading the code I wonder if m_crossOriginMode == CrossOriginMode::Isolated in WebProcessProxy...
Comment 2 Miguel Gomez 2024-02-13 05:13:31 PST
I think the feature is disabled by default.
When enabled, it will be available when m_crossOriginMode == CrossOriginMode::Isolated, as you mention. This will force the creation of a new webprocess in isolated mode, where the feature is available.
Comment 3 Adrian Perez 2024-02-13 06:08:29 PST
Usage of SharedArrayBuffer was disabled in bug #212069 due to
Spectre/Meltdown, then re-enabled in bug #229559 if COOP/COEP
headers are being used (to keep cross-site isolation, so one
site does not snoop on data from another). I only skimmed very
quickly but it looks like the patch for the latter is only
enabling the support for Mac/Cocoa depending on a setting.