Changeset 211407 in webkit
- Timestamp:
- Jan 30, 2017 10:27:37 PM (7 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r211403 r211407 1 2017-01-30 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] HTTP authentication is not implemented for downloads 4 https://bugs.webkit.org/show_bug.cgi?id=167583 5 6 Reviewed by Michael Catanzaro. 7 8 When a normal load is converted to a download, the HTTP authentication happens before the load is converted, and 9 the download starts already authenticated. However, downloads started by DownloadManager::startDownload use the 10 DownloadClient API to do the authentication. We don't implement didReceiveAuthenticationChallenge() in our 11 download client, what makes the load to be cancelled and then fail silently. We should probably add API to 12 handle downloads authentication, but we can also forward the authentication to the web view for downloads having 13 a web view associated. That would cover most of the cases, like downloading from the context menu. 14 15 * UIProcess/API/gtk/WebKitDownloadClient.cpp: Add didReceiveAuthenticationChallenge implementation. 16 1 17 2017-01-30 Sam Weinig <sam@webkit.org> 2 18 -
trunk/Source/WebKit2/UIProcess/API/gtk/WebKitDownloadClient.cpp
r207404 r211407 25 25 #include "WebKitURIResponsePrivate.h" 26 26 #include "WebKitWebContextPrivate.h" 27 #include "WebKitWebViewPrivate.h" 27 28 #include "WebProcessPool.h" 28 29 #include <WebKit/WKString.h> … … 45 46 GRefPtr<WebKitDownload> download = webkitWebContextGetOrCreateDownload(downloadProxy); 46 47 webkitWebContextDownloadStarted(m_webContext, download.get()); 48 } 49 50 void didReceiveAuthenticationChallenge(WebProcessPool*, DownloadProxy* downloadProxy, AuthenticationChallengeProxy* authenticationChallenge) override 51 { 52 GRefPtr<WebKitDownload> download = webkitWebContextGetOrCreateDownload(downloadProxy); 53 if (webkitDownloadIsCancelled(download.get())) 54 return; 55 56 // FIXME: Add API to handle authentication of downloads without a web view associted. 57 if (auto* webView = webkit_download_get_web_view(download.get())) 58 webkitWebViewHandleAuthenticationChallenge(webView, authenticationChallenge); 47 59 } 48 60
Note: See TracChangeset
for help on using the changeset viewer.