Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 78c6c2fe52eae2c42a4772ebc315d75048a57aad
      
https://github.com/WebKit/WebKit/commit/78c6c2fe52eae2c42a4772ebc315d75048a57aad
  Author: Anne van Kesteren <[email protected]>
  Date:   2026-05-07 (Thu, 07 May 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M 
LayoutTests/imported/w3c/web-platform-tests/html/cross-origin-embedder-policy/cross-origin-isolated-permission.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/identity-not-preserved.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/window-failure.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/window-iframe-messagechannel.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/html/infrastructure/safe-passing-of-structured-data/shared-array-buffers/window-simple-success.https-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/streams/transferable/deserialize-error.window-expected.txt
    M LayoutTests/platform/glib/TestExpectations
    M LayoutTests/platform/ios-site-isolation/TestExpectations
    M LayoutTests/platform/mac-site-isolation/TestExpectations
    M LayoutTests/workers/sab/postMessage-clones-growable-expected.txt
    M LayoutTests/workers/sab/postMessage-clones-growable.html
    M Source/WebCore/Headers.cmake
    M Source/WebCore/Modules/webaudio/AudioWorkletMessagingProxy.cpp
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/bindings/js/JSDOMGlobalObject.cpp
    M Source/WebCore/bindings/js/JSDOMGlobalObject.h
    M Source/WebCore/bindings/js/SerializedScriptValue.cpp
    M Source/WebCore/dom/Document.cpp
    M Source/WebCore/dom/Document.h
    M Source/WebCore/dom/EmptyScriptExecutionContext.h
    M Source/WebCore/dom/ScriptExecutionContext.cpp
    M Source/WebCore/dom/ScriptExecutionContext.h
    M Source/WebCore/loader/EmptyClients.cpp
    M Source/WebCore/page/LocalDOMWindow.cpp
    M Source/WebCore/page/Page.cpp
    M Source/WebCore/page/Page.h
    M Source/WebCore/page/PageConfiguration.cpp
    M Source/WebCore/page/PageConfiguration.h
    A Source/WebCore/platform/BrowsingContextGroupIdentifier.h
    M Source/WebCore/workers/WorkerGlobalScope.cpp
    M Source/WebCore/workers/WorkerGlobalScope.h
    M Source/WebCore/workers/WorkerMessagingProxy.cpp
    M Source/WebCore/worklets/WorkletGlobalScope.cpp
    M Source/WebCore/worklets/WorkletGlobalScope.h
    M Source/WebCore/worklets/WorkletParameters.h
    M Source/WebKit/Scripts/webkit/messages.py
    M Source/WebKit/Scripts/webkit/tests/MessageArgumentDescriptions.cpp
    M Source/WebKit/Shared/WTFArgumentCoders.serialization.in
    M Source/WebKit/Shared/WebPageCreationParameters.h
    M Source/WebKit/Shared/WebPageCreationParameters.serialization.in
    M Source/WebKit/UIProcess/BrowsingContextGroup.h
    M Source/WebKit/UIProcess/WebPageProxy.cpp
    M Source/WebKit/WebProcess/WebPage/WebPage.cpp
    M Source/WebKitLegacy/mac/WebView/WebView.mm

  Log Message:
  -----------
  Fix SharedArrayBuffer cloning and agent cluster IDs
https://bugs.webkit.org/show_bug.cgi?id=313972

Reviewed by Chris Dumez.

Introduce BrowsingContextGroupIdentifier to correctly scope agent
cluster IDs. Previously we used Process::identifier() as an
approximation, but multiple browsing context groups can share a
process and BroadcastChannel is not scoped to a browsing context group.

Make ScriptExecutionContext::agentClusterID() pure virtual. Document
computes it from the BCG identifier + origin/site. Dedicated workers
and worklets inherit it from their creator. Shared/service workers
always have a unique agent cluster ID.

Also re-enables sharing of growable SharedArrayBuffers, which was
slightly broken by r310998.

Canonical link: https://commits.webkit.org/312800@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to