Bug 181506

Summary: [Curl] Extract multipart handling from ResourceHandle to CurlRequest.
Product: WebKit Reporter: Basuke Suzuki <basuke>
Component: WebCore Misc.Assignee: Basuke Suzuki <basuke>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, basuke, bfulgham, commit-queue, don.olmstead, pvollan, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
patch
achristensen: review+
Patch
none
Archive of layout-test-results from webkit-cq-01 for mac-sierra none

Basuke Suzuki
Reported 2018-01-10 16:45:30 PST
Move multipart handling tasks into newly created class CurlMultiHandler and be prepared for NetworkLoadTask.
Attachments
Patch (9.32 KB, patch)
2018-01-10 16:49 PST, Basuke Suzuki
no flags
patch (34.87 KB, patch)
2018-01-10 17:05 PST, Basuke Suzuki
achristensen: review+
Patch (37.11 KB, patch)
2018-01-11 12:23 PST, Basuke Suzuki
no flags
Archive of layout-test-results from webkit-cq-01 for mac-sierra (2.23 MB, application/zip)
2018-01-11 13:26 PST, WebKit Commit Bot
no flags
Basuke Suzuki
Comment 1 2018-01-10 16:49:45 PST
Basuke Suzuki
Comment 2 2018-01-10 17:05:47 PST
Alex Christensen
Comment 3 2018-01-10 17:42:20 PST
Comment on attachment 330991 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=330991&action=review > Source/WebCore/platform/network/curl/CurlMultipartHandle.cppSource/WebCore/platform/network/curl/MultipartHandle.cpp:303 > +bool CurlMultipartHandle::matchForBoundary(const char* data, size_t position, size_t& matchedLength) Could this return a std::optional<size_t> instead? > Source/WebCore/platform/network/curl/CurlMultipartHandle.cppSource/WebCore/platform/network/curl/MultipartHandle.cpp:339 > + char* p = const_cast<char*>(content); Do we need this to be a non-const char*? I don't see us writing to it.
Don Olmstead
Comment 4 2018-01-10 17:45:38 PST
Comment on attachment 330991 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=330991&action=review > Source/WebCore/platform/network/curl/CurlMultipartHandle.cppSource/WebCore/platform/network/curl/MultipartHandle.cpp:3 > + * Copyright (C) 2017 Sony Interactive Entertainment Inc. Copyright (C) 2018
Basuke Suzuki
Comment 5 2018-01-11 11:54:10 PST
Comment on attachment 330991 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=330991&action=review >> Source/WebCore/platform/network/curl/CurlMultipartHandle.cppSource/WebCore/platform/network/curl/MultipartHandle.cpp:3 >> + * Copyright (C) 2017 Sony Interactive Entertainment Inc. > > Copyright (C) 2018 Yeah. Happy new year. >> Source/WebCore/platform/network/curl/CurlMultipartHandle.cppSource/WebCore/platform/network/curl/MultipartHandle.cpp:303 >> +bool CurlMultipartHandle::matchForBoundary(const char* data, size_t position, size_t& matchedLength) > > Could this return a std::optional<size_t> instead? No, when return true, first argument is meaningful. On the other case, second argument is used. We'll refactor later, but not this time. >> Source/WebCore/platform/network/curl/CurlMultipartHandle.cppSource/WebCore/platform/network/curl/MultipartHandle.cpp:339 >> + char* p = const_cast<char*>(content); > > Do we need this to be a non-const char*? I don't see us writing to it. Right.
Basuke Suzuki
Comment 6 2018-01-11 12:23:49 PST
Created attachment 331095 [details] Patch Fixed reviewed points
WebKit Commit Bot
Comment 7 2018-01-11 13:26:45 PST
Comment on attachment 331095 [details] Patch Rejecting attachment 331095 [details] from commit-queue. New failing tests: webgl/1.0.2/conformance/uniforms/uniform-default-values.html Full output: http://webkit-queues.webkit.org/results/6039153
WebKit Commit Bot
Comment 8 2018-01-11 13:26:47 PST
Created attachment 331108 [details] Archive of layout-test-results from webkit-cq-01 for mac-sierra The attached test failures were seen while running run-webkit-tests on the commit-queue. Bot: webkit-cq-01 Port: mac-sierra Platform: Mac OS X 10.12.6
Don Olmstead
Comment 9 2018-01-11 13:34:12 PST
I don't see how a change to curl would have anything to do with a mac failure and I've also seen this test fail in another bug. Just going to manually commit it..
Don Olmstead
Comment 10 2018-01-11 13:36:30 PST
Comment on attachment 331095 [details] Patch Clearing flags on attachment: 331095 Committed r226800: <https://trac.webkit.org/changeset/226800>
Don Olmstead
Comment 11 2018-01-11 13:36:32 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 12 2018-01-11 13:37:20 PST
Note You need to log in before you can comment on or make changes to this bug.