Bug 1403641: Allow data: URI downloads even if data: URI navigations are blocked. r=bz

This commit is contained in:
Christoph Kerschbaumer
2017-10-04 08:43:56 +02:00
parent 6c2e0a7801
commit efde1d4c6f
3 changed files with 8 additions and 4 deletions

View File

@@ -9967,7 +9967,8 @@ nsDocShell::InternalLoad(nsIURI* aURI,
aURI,
contentType,
aTriggeringPrincipal,
(aLoadType == LOAD_NORMAL_EXTERNAL))) {
(aLoadType == LOAD_NORMAL_EXTERNAL),
!aFileName.IsVoid())) {
// logging to console happens within AllowTopLevelNavigationToDataURI
return NS_OK;
}