mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
Bug 832398 - change default-source to default-src in CSP error messages. r=l10n
--HG-- extra : rebase_source : 019f24639e72481cd31c1f935dd657d42c99dd26
This commit is contained in:
parent
297984ced3
commit
1fadf0fd61
@ -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",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user