Branch: refs/heads/webkitglib/2.52
Home: https://github.com/WebKit/WebKit
Commit: 46c2bf82724f1f430d6558b43069a5f63ec340a7
https://github.com/WebKit/WebKit/commit/46c2bf82724f1f430d6558b43069a5f63ec340a7
Author: Youenn Fablet <[email protected]>
Date: 2026-08-20 (Thu, 20 Aug 2026)
Changed paths:
A
LayoutTests/http/wpt/cache-storage/cache-put-opaque-response-race-expected.txt
A LayoutTests/http/wpt/cache-storage/cache-put-opaque-response-race.html
M Source/WebCore/Modules/cache/CacheStorageConnection.cpp
M Source/WebCore/Modules/cache/CacheStorageConnection.h
Log Message:
-----------
Cherry-pick [email protected] (4c69ed8ad988).
https://bugs.webkit.org/show_bug.cgi?id=317270
Unsynchronized cross-thread access to m_opaqueResponseToSizeWithPaddingMap
in CacheStorageConnection::computeRecordBodySize
rdar://177953125
Reviewed by Chris Dumez.
We add a lock and the related lock assertions to prevent unlocked access to
the map.
Given the potential locking that may happen for form data size computation,
we make sure to compute the response real size outside of the lock.
Test: http/wpt/cache-storage/cache-put-opaque-response-race.html
*
LayoutTests/http/wpt/cache-storage/cache-put-opaque-response-race-expected.txt:
Added.
* LayoutTests/http/wpt/cache-storage/cache-put-opaque-response-race.html:
Added.
* Source/WebCore/Modules/cache/CacheStorageConnection.cpp:
(WebCore::CacheStorageConnection::computeRecordBodySize):
* Source/WebCore/Modules/cache/CacheStorageConnection.h:
Identifier: [email protected]
Canonical link: https://commits.webkit.org/305877.1106@webkitglib/2.52
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications