0

[CfM-only] Set the default state of the SharedArrayBuffers flag to enabled

This makes SharedArrayBuffers available to all client regardless of the Cross origin isolation of the site  (unless the feature is manually disabled). This will allow interop clients on Google Meet Hardware that currently rely on the SharedArrayBuffers origin trial to continue using SharedArrayBuffers after that trial expires.

This change acts as an override specifically for Google Meet Hardware (PLATFORM_CFM is specific to Google Meet Hardware). This works around the problem that the SharedArrayBuffers origin trial has expired in the past and may expire in the future.

go/x-on-meet-coop covers this in more detail.

(cherry picked from commit 1d216a4169)

Bug: 303207594
Change-Id: I2524f11939c60b77e00485e3961dacc0ea95970d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5390890
Reviewed-by: Kyle Williams <kdgwill@chromium.org>
Reviewed-by: Charlie Reis <creis@chromium.org>
Owners-Override: Richard Yeh <rcy@google.com>
Reviewed-by: Camille Lamy <clamy@chromium.org>
Commit-Queue: Felix Plymouth <fplymouth@google.com>
Cr-Original-Commit-Position: refs/branch-heads/6099_225@{#23}
Cr-Original-Branched-From: 6d3cc0dac5057925e096b1329680124b19f35842-refs/branch-heads/6099@{#1762}
Cr-Original-Branched-From: e6ee4500f7d6549a9ac1354f8d056da49ef406be-refs/heads/main@{#1217362}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6287530
Auto-Submit: Richard Yeh <rcy@google.com>
Reviewed-by: Avi Drissman <avi@chromium.org>
Commit-Queue: Richard Yeh <rcy@google.com>
Cr-Commit-Position: refs/heads/main@{#1425149}
This commit is contained in:
Felix Plymouth
2025-02-26 07:50:30 -08:00
committed by Chromium LUCI CQ
parent 963bcada50
commit 7becd1f07c

@ -1017,7 +1017,15 @@ BASE_FEATURE(kServiceWorkerPaymentApps,
// isolated renderers.
BASE_FEATURE(kSharedArrayBuffer,
"SharedArrayBuffer",
base::FEATURE_DISABLED_BY_DEFAULT);
#if BUILDFLAG(PLATFORM_CFM)
// Supports x-on-meet-coop interop implementation.
// TODO: crbug.com/398741358 - clean up this temporary workaround after
// https://crbug.com/333029146 replaces COOP restrict-properties.
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
);
// If enabled, GetUserMedia API will only work when the concerned tab is in
// focus