Bug 813800 - Never revalidate data URIs. r=joe

This commit is contained in:
Seth Fowler 2012-11-20 16:58:32 -08:00
parent 752e36f133
commit e4d770fba5

View File

@ -1324,6 +1324,12 @@ bool imgLoader::ValidateEntry(imgCacheEntry *aEntry,
aCORSMode, aLoadingPrincipal))
return false;
// Never validate data URIs.
nsAutoCString scheme;
aURI->GetScheme(scheme);
if (scheme.EqualsLiteral("data"))
return true;
bool validateRequest = false;
// If the request's loadId is the same as the aCX, then it is ok to use