Modified: trunk/Source/WebKit/ChangeLog (288308 => 288309)
--- trunk/Source/WebKit/ChangeLog 2022-01-20 19:08:25 UTC (rev 288308)
+++ trunk/Source/WebKit/ChangeLog 2022-01-20 19:12:44 UTC (rev 288309)
@@ -1,3 +1,14 @@
+2022-01-20 Ross Kirsling <[email protected]>
+
+ Unreviewed PlayStation / clang-cl build fix following r288298.
+
+ clang for Windows (< v10.0.0) cannot destructure a const class.
+ See also r261572, r254471, r249524, etc.
+
+ * NetworkProcess/storage/StorageAreaBase.cpp:
+ (WebKit::StorageAreaBase::notifyListenersAboutClear):
+ (WebKit::StorageAreaBase::dispatchEvents const):
+
2022-01-20 Sihui Liu <[email protected]>
Make LocalStorage prewarming async
Modified: trunk/Source/WebKit/NetworkProcess/storage/StorageAreaBase.cpp (288308 => 288309)
--- trunk/Source/WebKit/NetworkProcess/storage/StorageAreaBase.cpp 2022-01-20 19:08:25 UTC (rev 288308)
+++ trunk/Source/WebKit/NetworkProcess/storage/StorageAreaBase.cpp 2022-01-20 19:12:44 UTC (rev 288309)
@@ -64,8 +64,8 @@
void StorageAreaBase::notifyListenersAboutClear()
{
- for (auto& [connection, identifier] : m_listeners)
- IPC::Connection::send(connection, Messages::StorageAreaMap::ClearCache(StorageAreaBase::nextMessageIdentifier()), identifier.toUInt64());
+ for (auto& listener : m_listeners)
+ IPC::Connection::send(listener.key, Messages::StorageAreaMap::ClearCache(StorageAreaBase::nextMessageIdentifier()), listener.value.toUInt64());
}
void StorageAreaBase::dispatchEvents(IPC::Connection::UniqueID sourceConnection, StorageAreaImplIdentifier sourceImplIdentifier, const String& key, const String& oldValue, const String& newValue, const String& urlString) const
@@ -72,11 +72,11 @@
{
ASSERT(sourceImplIdentifier);
- for (auto& [connection, identifier] : m_listeners) {
+ for (auto& listener : m_listeners) {
std::optional<StorageAreaImplIdentifier> implIdentifier;
- if (connection == sourceConnection)
+ if (listener.key == sourceConnection)
implIdentifier = sourceImplIdentifier;
- IPC::Connection::send(connection, Messages::StorageAreaMap::DispatchStorageEvent(implIdentifier, key, oldValue, newValue, urlString, StorageAreaBase::nextMessageIdentifier()), identifier.toUInt64());
+ IPC::Connection::send(listener.key, Messages::StorageAreaMap::DispatchStorageEvent(implIdentifier, key, oldValue, newValue, urlString, StorageAreaBase::nextMessageIdentifier()), listener.value.toUInt64());
}
}