Title: [276778] branches/safari-612.1.12-branch/Source/WebKit
- Revision
- 276778
- Author
- [email protected]
- Date
- 2021-04-29 09:17:49 -0700 (Thu, 29 Apr 2021)
Log Message
Cherry-pick r276671. rdar://problem/77324338
HashTableConstIterator's consistency assertion fails while closing m_webIDBServers in NetworkProcess::didClose since r275846
https://bugs.webkit.org/show_bug.cgi?id=225089
Reviewed by Chris Dumez.
The items of m_webIDBServers were removed while iterating
m_webIDBServers.
Move m_webIDBServers to a temporary HashMap before iterating.
* NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::didClose):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-612.1.12-branch/Source/WebKit/ChangeLog (276777 => 276778)
--- branches/safari-612.1.12-branch/Source/WebKit/ChangeLog 2021-04-29 16:09:17 UTC (rev 276777)
+++ branches/safari-612.1.12-branch/Source/WebKit/ChangeLog 2021-04-29 16:17:49 UTC (rev 276778)
@@ -1,3 +1,38 @@
+2021-04-29 Ruben Turcios <[email protected]>
+
+ Cherry-pick r276671. rdar://problem/77324338
+
+ HashTableConstIterator's consistency assertion fails while closing m_webIDBServers in NetworkProcess::didClose since r275846
+ https://bugs.webkit.org/show_bug.cgi?id=225089
+
+ Reviewed by Chris Dumez.
+
+ The items of m_webIDBServers were removed while iterating
+ m_webIDBServers.
+
+ Move m_webIDBServers to a temporary HashMap before iterating.
+
+ * NetworkProcess/NetworkProcess.cpp:
+ (WebKit::NetworkProcess::didClose):
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2021-04-27 Fujii Hironori <[email protected]>
+
+ HashTableConstIterator's consistency assertion fails while closing m_webIDBServers in NetworkProcess::didClose since r275846
+ https://bugs.webkit.org/show_bug.cgi?id=225089
+
+ Reviewed by Chris Dumez.
+
+ The items of m_webIDBServers were removed while iterating
+ m_webIDBServers.
+
+ Move m_webIDBServers to a temporary HashMap before iterating.
+
+ * NetworkProcess/NetworkProcess.cpp:
+ (WebKit::NetworkProcess::didClose):
+
2021-04-27 Ruben Turcios <[email protected]>
Cherry-pick r276590. rdar://problem/77235569
Modified: branches/safari-612.1.12-branch/Source/WebKit/NetworkProcess/NetworkProcess.cpp (276777 => 276778)
--- branches/safari-612.1.12-branch/Source/WebKit/NetworkProcess/NetworkProcess.cpp 2021-04-29 16:09:17 UTC (rev 276777)
+++ branches/safari-612.1.12-branch/Source/WebKit/NetworkProcess/NetworkProcess.cpp 2021-04-29 16:17:49 UTC (rev 276778)
@@ -274,7 +274,8 @@
});
// Make sure references to NetworkProcess in spaceRequester and closeHandler is removed.
- for (auto& server : m_webIDBServers.values())
+ auto servers = std::exchange(m_webIDBServers, { });
+ for (auto& server : servers.values())
server->close();
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes