Commit 75bb10dd authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[DownloadJob] Fall back to url when finalUrl isn't set

finalUrl isn't supported by Firefox so it would never set the origin URL here
parent 3d8f2dfd
......@@ -277,9 +277,11 @@ void DownloadJob::addToRecentDocuments()
void DownloadJob::saveOriginUrl()
{
QUrl url = m_finalUrl.isValid() ? m_finalUrl : m_url;
if (m_incognito
// Blob URLs are dynamically created through JavaScript and cannot be accessed from the outside
|| m_finalUrl.scheme() == QLatin1String("blob")) {
|| url.scheme() == QLatin1String("blob")) {
return;
}
......@@ -292,7 +294,6 @@ void DownloadJob::saveOriginUrl()
KFileMetaData::UserMetaData md(m_fileName);
QUrl url = m_finalUrl;
url.setPassword(QString());
md.setOriginUrl(url);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment