WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
167583
[GTK] HTTP authentication is not implemented for downloads
https://bugs.webkit.org/show_bug.cgi?id=167583
Summary
[GTK] HTTP authentication is not implemented for downloads
Carlos Garcia Campos
Reported
2017-01-30 05:20:49 PST
When a normal load is converted to a download, the HTTP authentication happens before the load is converted, and the download startes already authenticated. However, downloads started by DownloadManager::startDownload use the DownloadClient API to do the authentication. We don't implement didReceiveAuthenticationChallenge() in our download client, what makes the load to be cancelled and then fail silently. We should probably add API to handle downloads authentication, but we can also forward the authentication to the web view for downloads havign a web view associated. That would cover most of the cases, like downloading from the context menu.
Attachments
Patch
(2.78 KB, patch)
2017-01-30 05:23 PST
,
Carlos Garcia Campos
mcatanzaro
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2017-01-30 05:23:01 PST
Created
attachment 300099
[details]
Patch
WebKit Commit Bot
Comment 2
2017-01-30 05:24:11 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See
http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Carlos Garcia Campos
Comment 3
2017-01-30 05:25:59 PST
Note that this patch doesn't work because of a bug in libsoup, see
https://bugzilla.gnome.org/show_bug.cgi?id=777936
. Downloads do not allow using stored credentials by default. This matches safari behavior, but I don't think it's desired, it's quite weird that credentials are asked again when downloading something from the context menu, and even more that the HTTP auth dialog is not filled with the stored credentials.
Michael Catanzaro
Comment 4
2017-01-30 06:27:43 PST
Comment on
attachment 300099
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=300099&action=review
> Source/WebKit2/ChangeLog:9 > + the download startes already authenticated. However, downloads started by DownloadManager::startDownload use the
startes -> starts
> Source/WebKit2/ChangeLog:12 > + handle downloads authentication, but we can also forward the authentication to the web view for downloads havign
havign -> having
Carlos Garcia Campos
Comment 5
2017-01-30 22:29:11 PST
Committed
r211407
: <
http://trac.webkit.org/changeset/211407
>
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