Changeset 288232 in webkit
- Timestamp:
- Jan 19, 2022, 12:38:21 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/Downloads/DownloadProxy.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r288216 r288232 1 2022-01-19 Chris Dumez <cdumez@apple.com> 2 3 WebKit::DownloadProxy::publishProgress() falls through ASSERT_NOT_REACHED() 4 https://bugs.webkit.org/show_bug.cgi?id=234975 5 <rdar://problem/87265153> 6 7 Reviewed by Darin Adler. 8 9 * UIProcess/Downloads/DownloadProxy.cpp: 10 (WebKit::DownloadProxy::publishProgress): 11 Let's not send the IPC if we failed to create the handle since the recipient code early returns when the handle is 12 invalid. 13 1 14 2022-01-19 Alex Christensen <achristensen@webkit.org> 2 15 -
trunk/Source/WebKit/UIProcess/Downloads/DownloadProxy.cpp
r286815 r288232 107 107 return; 108 108 109 SandboxExtension::Handle handle; 110 if (auto createdHandle = SandboxExtension::createHandle(URL.fileSystemPath(), SandboxExtension::Type::ReadWrite)) 111 handle = WTFMove(*createdHandle); 112 else 113 ASSERT_NOT_REACHED(); 114 115 m_dataStore->networkProcess().send(Messages::NetworkProcess::PublishDownloadProgress(m_downloadID, URL, handle), 0); 109 auto handle = SandboxExtension::createHandle(URL.fileSystemPath(), SandboxExtension::Type::ReadWrite); 110 ASSERT(handle); 111 if (!handle) 112 return; 113 114 m_dataStore->networkProcess().send(Messages::NetworkProcess::PublishDownloadProgress(m_downloadID, URL, *handle), 0); 116 115 } 117 116 #endif // PLATFORM(COCOA)
Note:
See TracChangeset
for help on using the changeset viewer.