Changeset 245913 in webkit
- Timestamp:
- May 30, 2019 5:08:04 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r245911 r245913 1 2019-05-30 Youenn Fablet <youenn@apple.com> 2 3 REGRESSION (r245873) [Mac WK2] Layout Test http/wpt/service-workers/update-service-worker.https.html is a flaky crash after running new test 4 https://bugs.webkit.org/show_bug.cgi?id=198379 5 <rdar://problem/51264361> 6 7 Reviewed by Alex Christensen. 8 9 This case can happen when network process is crashing. 10 Given the WebSWClientConnection may be kept alive, it might reregister itself but in that case will never be unregistered. 11 Remove the WebSWClientConnection from the NetworkProcessConnection corresponding map on destruction time. 12 Covered by no longer crashing tests. 13 14 * WebProcess/Network/NetworkProcessConnection.cpp: 15 (WebKit::NetworkProcessConnection::removeSWClientConnection): 16 * WebProcess/Network/NetworkProcessConnection.h: 17 * WebProcess/Storage/WebSWClientConnection.cpp: 18 (WebKit::WebSWClientConnection::~WebSWClientConnection): 19 1 20 2019-05-30 Chris Dumez <cdumez@apple.com> 2 21 -
trunk/Source/WebKit/WebProcess/Network/NetworkProcessConnection.cpp
r245873 r245913 266 266 } 267 267 268 void NetworkProcessConnection::removeSWClientConnection(WebSWClientConnection& connection) 269 { 270 ASSERT(m_swConnectionsByIdentifier.contains(connection.serverConnectionIdentifier())); 271 m_swConnectionsByIdentifier.remove(connection.serverConnectionIdentifier()); 272 } 273 268 274 SWServerConnectionIdentifier NetworkProcessConnection::initializeSWClientConnection(WebSWClientConnection& connection) 269 275 { -
trunk/Source/WebKit/WebProcess/Network/NetworkProcessConnection.h
r245873 r245913 78 78 79 79 WebCore::SWServerConnectionIdentifier initializeSWClientConnection(WebSWClientConnection&); 80 void removeSWClientConnection(WebSWClientConnection&); 80 81 #endif 81 82 -
trunk/Source/WebKit/WebProcess/Storage/WebSWClientConnection.cpp
r245873 r245913 63 63 WebSWClientConnection::~WebSWClientConnection() 64 64 { 65 if (m_connection) 66 WebProcess::singleton().ensureNetworkProcessConnection().removeSWClientConnection(*this); 65 67 } 66 68
Note: See TracChangeset
for help on using the changeset viewer.