mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 1470295 - Allow save-as download of FTP files on HTTP pages. r=ckerschb
--HG-- extra : rebase_source : 0254446f8d477d0214b602b1e7ab2cc8b762d115
This commit is contained in:
parent
e54eee09d0
commit
58828f18c8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user