DescriptionRespect cookies set in a 401 responses when restarting the http transaction.
There are two parts to this change:
(1) rebuild the request cookies before each transaction restart for
authentication
(2) notify the URLRequestHttpJob of header completion before *each*
transaction restart for authentication
By "each transaction" I mean the automatic restarts that don't require
user input, such as:
- replying to the first step of NTLM
- selecting identity embedded in URL
- selecting identity in auth-cache
Needing to notify URLRequestHttpJob for these intermediate restarts is
a consequence of cookie store management being done outside of
HttpNetworkTransaction.
After updating the cookie store, URLRequestHttpJob now tests
|HttpTransaction::IsReadyToRestartForAuth()| to check whether the
notification was informational or an identity is actually needed.
R=wtc
BUG=6450
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=12635
Patch Set 1 #
Total comments: 3
Patch Set 2 : add back proxy_auth_state_, server_auth_state_, which is depended by ui tests #
Total comments: 22
Patch Set 3 : Address wtc comments #
Total comments: 2
Patch Set 4 : Do a gclient sync to update files #
Total comments: 8
Patch Set 5 : Address wtc's comments #Patch Set 6 : address rest of wtc's comments (had missed some in previous patchset) #
Messages
Total messages: 6 (0 generated)
|