Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: deb934129d186a97bffb2727dc04edf84e216eb0
https://github.com/WebKit/WebKit/commit/deb934129d186a97bffb2727dc04edf84e216eb0
Author: Sihui Liu <[email protected]>
Date: 2026-04-22 (Wed, 22 Apr 2026)
Changed paths:
M Source/WebKit/NetworkProcess/storage/NetworkStorageManager.cpp
Log Message:
-----------
Update allowed sites for connection on work queue before processing messages
https://bugs.webkit.org/show_bug.cgi?id=312920
rdar://175266853
Reviewed by Per Arne Vollan.
In current implementation, startReceivingMessageFromConnection registers the
connection as a work queue message receiver
on the main thread, then dispatches updateAllowedSitesForConnection separately.
This creates a race where messages from
the connection could arrive on the work queue before the allowed sites list was
populated, causing site validation
checks to fail.
To fix this, move the allowed sites update into the same work queue dispatch
block that initializes the connection's
preferences, ensuring the allowed sites are set before any messages are
processed.
* Source/WebKit/NetworkProcess/storage/NetworkStorageManager.cpp:
(WebKit::NetworkStorageManager::startReceivingMessageFromConnection):
Canonical link: https://commits.webkit.org/311822@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications