Bug 240293

Summary: [WinCairo] Support file downloads
Product: WebKit Reporter: Yury Semikhatsky <yurys>
Component: WebKit2Assignee: Yury Semikhatsky <yurys>
Status: RESOLVED FIXED    
Severity: Normal CC: annulen, basuke, conojab991, don.olmstead, ews-watchlist, fujii.hironori, galpeter, gyuyoung.kim, kkinnunen, ryuan.choi, sergio, takashi.komori, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: PC   
OS: Windows 10   
Bug Depends on:    
Bug Blocks: 234887    
Attachments:
Description Flags
Patch
none
Patch none

Yury Semikhatsky
Reported 2022-05-10 17:39:11 PDT
[WinCairo] Support file downloads
Attachments
Patch (13.65 KB, patch)
2022-05-10 17:46 PDT, Yury Semikhatsky
no flags
Patch (14.09 KB, patch)
2022-05-11 12:38 PDT, Yury Semikhatsky
no flags
Yury Semikhatsky
Comment 1 2022-05-10 17:46:51 PDT
Fujii Hironori
Comment 2 2022-05-11 00:56:04 PDT
Comment on attachment 459142 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459142&action=review > Source/WebKit/ChangeLog:8 > + Hooked up Curl calls to Download callbacks. Added basix support for basix → basic > Source/WebKit/NetworkProcess/curl/NetworkDataTaskCurl.cpp:194 > + FileSystem::writeToFile(m_downloadDestinationFile, segment.data(), segment.size()); Why do you ignore the return value of writeToFile?
Yury Semikhatsky
Comment 3 2022-05-11 12:37:43 PDT
Comment on attachment 459142 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459142&action=review >> Source/WebKit/ChangeLog:8 >> + Hooked up Curl calls to Download callbacks. Added basix support for > > basix → basic Done. >> Source/WebKit/NetworkProcess/curl/NetworkDataTaskCurl.cpp:194 >> + FileSystem::writeToFile(m_downloadDestinationFile, segment.data(), segment.size()); > > Why do you ignore the return value of writeToFile? Fixed. Added error handling.
Yury Semikhatsky
Comment 4 2022-05-11 12:38:45 PDT
Fujii Hironori
Comment 5 2022-05-11 14:03:39 PDT
Comment on attachment 459177 [details] Patch LGTM
EWS
Comment 6 2022-05-11 14:59:07 PDT
Committed r294077 (250472@main): <https://commits.webkit.org/250472@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 459177 [details].
Radar WebKit Bug Importer
Comment 7 2022-05-11 15:00:15 PDT
Don Olmstead
Comment 8 2022-05-27 12:39:52 PDT
*** Bug 234887 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.