NetworkJob::purgeCredentials() purges the credential from the memory that fails the authentication, which means that the credential is incorrect (it could be that it is incorrect from the beginning, or that it was correct but the credential was changed on server, could be through another device, etc.) and should not be used again. We should also purge the credential record in the persistent credential storage (the CredentialBackingStore). Otherwise, the browser will read from the persistent credential storage and send the invalid credential again when challenged.
Created attachment 171415 [details] Patch
Internal tracking No: 233482
Comment on attachment 171415 [details] Patch Rejecting attachment 171415 [details] from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: queue/Source/WebKit/chromium/third_party/skia/include --revision 6161 --non-interactive --force --accept theirs-conflict --ignore-externals' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' 46>At revision 6161. ________ running '/usr/bin/python tools/clang/scripts/update.py --mac-only' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' ________ running '/usr/bin/python gyp_webkit' in '/mnt/git/webkit-commit-queue/Source/WebKit/chromium' Updating webkit projects from gyp files... Full output: http://queues.webkit.org/results/14629506
Created attachment 171562 [details] Patch
Comment on attachment 171562 [details] Patch Reviewed by George. Commit it.
Comment on attachment 171562 [details] Patch Clearing flags on attachment: 171562 Committed r132976: <http://trac.webkit.org/changeset/132976>
All reviewed patches have been landed. Closing bug.