Changeset 238369 in webkit
- Timestamp:
- Nov 18, 2018 11:29:15 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r238368 r238369 1 2018-11-18 Joseph Pecoraro <pecoraro@apple.com> 2 3 Regression(r238330) ProcessSwap.WebInspector API test is a flaky crash in debug 4 https://bugs.webkit.org/show_bug.cgi?id=191812 5 6 Reviewed by Chris Dumez. 7 8 * WebProcess/WebPage/WebInspector.cpp: 9 (WebKit::WebInspector::setFrontendConnection): 10 It can be possible to receive a frontend connection multiple times 11 if another WebProcess opened the inspector and this WebProcess got 12 swapped in before the InspectorProcess notified the WebProcess of 13 a connection to use. It is always best to use the latest connection 14 we have received, since any others would have been invalidated. 15 1 16 2018-11-18 Chris Dumez <cdumez@apple.com> 2 17 -
trunk/Source/WebKit/WebProcess/WebPage/WebInspector.cpp
r238330 r238369 78 78 void WebInspector::setFrontendConnection(IPC::Attachment encodedConnectionIdentifier) 79 79 { 80 ASSERT(!m_frontendConnection); 80 // We might receive multiple updates if this web process got swapped into a WebPageProxy 81 // shortly after another process established the connection. 82 if (m_frontendConnection) { 83 m_frontendConnection->invalidate(); 84 m_frontendConnection = nullptr; 85 } 81 86 82 87 #if USE(UNIX_DOMAIN_SOCKETS)
Note: See TracChangeset
for help on using the changeset viewer.