WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
152207
Use existing code for redirects when using NETWORK_SESSION
https://bugs.webkit.org/show_bug.cgi?id=152207
Summary
Use existing code for redirects when using NETWORK_SESSION
Alex Christensen
Reported
2015-12-11 18:47:08 PST
Use existing code for redirects when using NETWORK_SESSION
Attachments
Patch
(4.51 KB, patch)
2015-12-11 18:47 PST
,
Alex Christensen
no flags
Details
Formatted Diff
Diff
Patch
(4.65 KB, patch)
2015-12-12 17:17 PST
,
Alex Christensen
darin
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2015-12-11 18:47:23 PST
Created
attachment 267213
[details]
Patch
Alex Christensen
Comment 2
2015-12-12 17:10:32 PST
Comment on
attachment 267213
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=267213&action=review
> Source/WebKit2/NetworkProcess/NetworkLoad.cpp:169 > sharedWillSendRedirectedRequest(request, response); > - completionHandler(request); > + ASSERT(!m_redirectCompletionHandler); > + m_redirectCompletionHandler = completionHandler;
I need to set m_redirectCompletionHandler before calling sharedWillSendRedirectedRequest
Alex Christensen
Comment 3
2015-12-12 17:14:24 PST
This fixes http/tests/cookies/set-cookie-on-redirect.html
rdar://problem/23860624
Alex Christensen
Comment 4
2015-12-12 17:17:04 PST
Created
attachment 267248
[details]
Patch
Darin Adler
Comment 5
2015-12-13 13:44:21 PST
Comment on
attachment 267248
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=267248&action=review
> Source/WebKit2/NetworkProcess/NetworkLoad.cpp:107 > + m_task->cancel();
Incorrect indentation?
> Source/WebKit2/NetworkProcess/NetworkLoad.h:125 > + RedirectCompletionHandler m_redirectCompletionHandler { nullptr };
std::function doesn't need nullptr initialization to be null
Alex Christensen
Comment 6
2015-12-14 13:54:10 PST
https://trac.webkit.org/changeset/194043
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