Bug 1470295 - Allow save-as download of FTP files on HTTP pages. r=ckerschb

--HG--
extra : rebase_source : 0254446f8d477d0214b602b1e7ab2cc8b762d115
This commit is contained in:
Tom Schuster 2018-06-21 23:31:13 +02:00
parent e54eee09d0
commit 58828f18c8

View File

@ -176,7 +176,11 @@ nsContentSecurityManager::CheckFTPSubresourceLoad(nsIChannel* aChannel)
}
nsContentPolicyType type = loadInfo->GetExternalContentPolicyType();
if (type == nsIContentPolicy::TYPE_DOCUMENT) {
// Allow top-level FTP documents and save-as download of FTP files on
// HTTP pages.
if (type == nsIContentPolicy::TYPE_DOCUMENT ||
type == nsIContentPolicy::TYPE_SAVEAS_DOWNLOAD) {
return NS_OK;
}