Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[iOS Sim Debug] ASSERTION FAILED: m_downloads.isEmpty() Layout Test h…
…ttp/tests/websocket/tests/hybi/network-process-crash-error.html is a flaky crash https://bugs.webkit.org/show_bug.cgi?id=196781 <rdar://problem/49789381> Reviewed by Darin Adler. When the network process gets terminated by the client, the NetworkProcessProxy object (and thus its DownloadProxyMap member) get destroyed right away, before we get a call to didClose(IPC::Connection&). As a result, if there are ongoing downloads at the time of the termination, we will hit the assertion above. To address the issue, update the NetworkProcessProxy destructor to invalidate its DownloadProxyMap member, similator to what it does in didClose(IPC::Connection&). * UIProcess/Downloads/DownloadProxyMap.cpp: (WebKit::DownloadProxyMap::invalidate): (WebKit::DownloadProxyMap::processDidClose): Deleted. * UIProcess/Downloads/DownloadProxyMap.h: * UIProcess/Network/NetworkProcessProxy.cpp: (WebKit::NetworkProcessProxy::~NetworkProcessProxy): (WebKit::NetworkProcessProxy::didClose): Canonical link: https://commits.webkit.org/211126@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244217 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
4 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters