WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
187874
[Curl] Fix issue that extra cookie is added when redirect happens.
https://bugs.webkit.org/show_bug.cgi?id=187874
Summary
[Curl] Fix issue that extra cookie is added when redirect happens.
Basuke Suzuki
Reported
2018-07-20 16:44:00 PDT
The implementation modified original request to add cookie headers. That caused the issues when redirect happens which was shared while redirecting.
Attachments
PATCH
(10.51 KB, patch)
2018-08-27 12:18 PDT
,
Basuke Suzuki
no flags
Details
Formatted Diff
Diff
PATCH
(13.67 KB, patch)
2018-08-28 11:11 PDT
,
Basuke Suzuki
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Basuke Suzuki
Comment 1
2018-08-27 12:18:04 PDT
Created
attachment 348185
[details]
PATCH
Alex Christensen
Comment 2
2018-08-27 17:36:20 PDT
Comment on
attachment 348185
[details]
PATCH View in context:
https://bugs.webkit.org/attachment.cgi?id=348185&action=review
> LayoutTests/http/tests/cookies/multiple-redirect-and-set-cookie.php:3 > + * This is test for
https://bugs.webkit.org/show_bug.cgi?id=187874
.
Probably not necessary. version control can be used for anyone who wants to find this out
> Source/WebCore/platform/network/curl/ResourceHandleCurl.cpp:136 > -Ref<CurlRequest> ResourceHandle::createCurlRequest(ResourceRequest& request, RequestStatus status) > +Ref<CurlRequest> ResourceHandle::createCurlRequest(ResourceRequest request, RequestStatus status)
This could probably be a ResourceRequest&&
Basuke Suzuki
Comment 3
2018-08-28 11:11:58 PDT
Created
attachment 348313
[details]
PATCH
Basuke Suzuki
Comment 4
2018-08-28 11:13:14 PDT
Comment on
attachment 348313
[details]
PATCH Alex, right. Simple copying was a little bit uncomfortable for me. Thanks for that advice.
Alex Christensen
Comment 5
2018-08-28 13:02:54 PDT
Comment on
attachment 348313
[details]
PATCH View in context:
https://bugs.webkit.org/attachment.cgi?id=348313&action=review
> Source/WebKit/NetworkProcess/curl/NetworkDataTaskCurl.cpp:136 > + return CurlRequest::create(request, *this, CurlRequest::ShouldSuspend::Yes);
This could also probably take a ResourceRequest&&
Basuke Suzuki
Comment 6
2018-08-28 13:23:02 PDT
Comment on
attachment 348313
[details]
PATCH View in context:
https://bugs.webkit.org/attachment.cgi?id=348313&action=review
thanks for r+.
>> Source/WebKit/NetworkProcess/curl/NetworkDataTaskCurl.cpp:136 >> + return CurlRequest::create(request, *this, CurlRequest::ShouldSuspend::Yes); > > This could also probably take a ResourceRequest&&
I'll open other bug for this. I'm taking a look into CurlRequest in detail and researching who gonna deref-ing the instance. If I understand correctly, if the object was deleted in main thread, there's no need to isolateCopy for the argument's ResourceRequest even if they referred from worker thread. So by calling deref() from main thread, the need of isolatedCopy() can be removed and we can store moved request directly. Please correct me if something wrong, Alex.
WebKit Commit Bot
Comment 7
2018-08-28 13:50:27 PDT
Comment on
attachment 348313
[details]
PATCH Clearing flags on attachment: 348313 Committed
r235437
: <
https://trac.webkit.org/changeset/235437
>
WebKit Commit Bot
Comment 8
2018-08-28 13:50:28 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9
2018-08-28 13:51:27 PDT
<
rdar://problem/43812677
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug