mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 16:17:29 +09:00
Issue #2402 - Remove child-src deprecation warning. https://bugzilla.mozilla.org/show_bug.cgi?id=1486331
This commit is contained in:
parent
bfabbcd311
commit
1349cf2d01
2 changed files with 3 additions and 11 deletions
|
|
@ -112,10 +112,6 @@ couldntParsePort = Couldn’t parse port in %1$S
|
||||||
# LOCALIZATION NOTE (duplicateDirective):
|
# LOCALIZATION NOTE (duplicateDirective):
|
||||||
# %1$S is the name of the duplicate directive
|
# %1$S is the name of the duplicate directive
|
||||||
duplicateDirective = Duplicate %1$S directives detected. All but the first instance will be ignored.
|
duplicateDirective = Duplicate %1$S directives detected. All but the first instance will be ignored.
|
||||||
# LOCALIZATION NOTE (deprecatedChildSrcDirective):
|
|
||||||
# %1$S is the value of the deprecated directive.
|
|
||||||
# Do not localize: worker-src, frame-src
|
|
||||||
deprecatedChildSrcDirective = Directive ‘%1$S’ has been deprecated. Please use directive ‘worker-src’ to control workers, or directive ‘frame-src’ to control frames respectively.
|
|
||||||
# LOCALIZATION NOTE (couldntParseInvalidSandboxFlag):
|
# LOCALIZATION NOTE (couldntParseInvalidSandboxFlag):
|
||||||
# %1$S is the option that could not be understood
|
# %1$S is the option that could not be understood
|
||||||
couldntParseInvalidSandboxFlag = Couldn’t parse invalid sandbox flag ‘%1$S’
|
couldntParseInvalidSandboxFlag = Couldn’t parse invalid sandbox flag ‘%1$S’
|
||||||
|
|
|
||||||
|
|
@ -1056,14 +1056,10 @@ nsCSPParser::directiveName()
|
||||||
return new nsUpgradeInsecureDirective(CSP_StringToCSPDirective(mCurToken));
|
return new nsUpgradeInsecureDirective(CSP_StringToCSPDirective(mCurToken));
|
||||||
}
|
}
|
||||||
|
|
||||||
// child-src by itself is deprecatd but will be enforced
|
// if we have a child-src, cache it as a fallback for
|
||||||
// * for workers (if worker-src is not explicitly specified)
|
// * workers (if worker-src is not explicitly specified)
|
||||||
// * for frames (if frame-src is not explicitly specified)
|
// * frames (if frame-src is not explicitly specified)
|
||||||
if (CSP_IsDirective(mCurToken, nsIContentSecurityPolicy::CHILD_SRC_DIRECTIVE)) {
|
if (CSP_IsDirective(mCurToken, nsIContentSecurityPolicy::CHILD_SRC_DIRECTIVE)) {
|
||||||
const char16_t* params[] = { mCurToken.get() };
|
|
||||||
logWarningErrorToConsole(nsIScriptError::warningFlag,
|
|
||||||
"deprecatedChildSrcDirective",
|
|
||||||
params, ArrayLength(params));
|
|
||||||
mChildSrc = new nsCSPChildSrcDirective(CSP_StringToCSPDirective(mCurToken));
|
mChildSrc = new nsCSPChildSrcDirective(CSP_StringToCSPDirective(mCurToken));
|
||||||
return mChildSrc;
|
return mChildSrc;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue