Bug 832398 - change default-source to default-src in CSP error messages. r=l10n

--HG--
extra : rebase_source : 019f24639e72481cd31c1f935dd657d42c99dd26
This commit is contained in:
Sid Stamm 2013-03-28 10:05:51 -07:00
parent 297984ced3
commit 1fadf0fd61
2 changed files with 5 additions and 3 deletions

View File

@ -302,7 +302,7 @@ CSPRep.fromString = function(aStr, self, docRequest, csp) {
// parse "allow" as equivalent to "default-src", at least until the spec
// stabilizes, at which time we can stop parsing "allow"
if (dirname === CSPRep.ALLOW_DIRECTIVE) {
cspWarn(aCSPR, CSPLocalizer.getStr("allowDirectiveDeprecated"));
cspWarn(aCSPR, CSPLocalizer.getStr("allowDirectiveIsDeprecated"));
if (aCSPR._directives.hasOwnProperty(SD.DEFAULT_SRC)) {
// Check for duplicate default-src and allow directives
cspError(aCSPR, CSPLocalizer.getFormatStr("duplicateDirective",

View File

@ -45,8 +45,10 @@ failedToParseUnrecognizedSource = Failed to parse unrecognized source %1$S
# LOCALIZATION NOTE (reportPostRedirect):
# %1$S is the specified report URI before redirect
reportPostRedirect = Post of violation report to %1$S failed, as a redirect occurred
# LOCALIZATION NOTE (allowDirectiveDeprecated):
allowDirectiveDeprecated = allow directive is deprecated, use the equivalent default-source directive instead
# LOCALIZATION NOTE (allowDirectiveIsDeprecated):
# Don't translate "allow" and "default-src" as they are keywords and part of
# the CSP protocol syntax.
allowDirectiveIsDeprecated = allow directive is deprecated, use the equivalent default-src directive instead
# CSP Errors:
policyURINotAlone = policy-uri directive can only appear alone