Bug 629682 - Add a better warning message for SVG-as-an-image external resources being blocked. r=dholbert

This commit is contained in:
Robert Longson 2015-03-07 09:15:23 +00:00
parent 21f229c594
commit 3f3f8fa14e
2 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,7 @@ nsDataDocumentContentPolicy::ShouldLoad(uint32_t aContentType,
requestingPrincipal->GetURI(getter_AddRefs(principalURI)); requestingPrincipal->GetURI(getter_AddRefs(principalURI));
if (NS_SUCCEEDED(rv) && principalURI) { if (NS_SUCCEEDED(rv) && principalURI) {
nsScriptSecurityManager::ReportError( nsScriptSecurityManager::ReportError(
nullptr, NS_LITERAL_STRING("CheckSameOriginError"), principalURI, nullptr, NS_LITERAL_STRING("ExternalDataError"), principalURI,
aContentLocation); aContentLocation);
} }
} }

View File

@ -4,6 +4,7 @@
CheckMessage = Remember this decision CheckMessage = Remember this decision
CheckLoadURIError = Security Error: Content at %S may not load or link to %S. CheckLoadURIError = Security Error: Content at %S may not load or link to %S.
CheckSameOriginError = Security Error: Content at %S may not load data from %S. CheckSameOriginError = Security Error: Content at %S may not load data from %S.
ExternalDataError = Security Error: Content at %S attempted to load %S, but may not load external data when being used as an image.
# LOCALIZATION NOTE (GetPropertyDeniedOrigins): # LOCALIZATION NOTE (GetPropertyDeniedOrigins):
# %1$S is the origin of the script which was denied access. # %1$S is the origin of the script which was denied access.