mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 813800 - Never revalidate data URIs. r=joe
This commit is contained in:
parent
752e36f133
commit
e4d770fba5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user