12014-09-10 Youenn Fablet <youenn.fablet@crf.canon.fr>
2
3 [WK2] Authentication dialog is displayed for cross-origin XHR
4 https://bugs.webkit.org/show_bug.cgi?id=131349
5
6 Reviewed by Alexey Proskuryakov.
7
8 Precomputing client credential policy in the Web Process before sending the resource load task to the Network Process.
9
10 * NetworkProcess/NetworkResourceLoader.cpp:
11 (WebKit::NetworkResourceLoader::didReceiveAuthenticationChallenge): Added an ASSERT to ensure that credential policy is never set to DoNotAskClientForCrossOriginCredentials.
12 * WebProcess/Network/WebResourceLoadScheduler.cpp:
13 (WebKit::WebResourceLoadScheduler::scheduleLoad): Precomputing client credential policy to handle the case of cross-origin requests.
14 * WebProcess/Network/WebResourceLoader.cpp:
15 (WebKit::WebResourceLoader::willSendRequest): Added a TODO to check whether redirections need a specific handling.
16