From a4b038c5229059e6b18471c5f694f786b169a1ef Mon Sep 17 00:00:00 2001 From: "Francesco Lodolo (:flod)" Date: Thu, 12 Jan 2023 14:27:33 +0000 Subject: [PATCH] Bug 1809601 - Use "Content-Security-Policy" for group CSP option, r=nchevobbe Differential Revision: https://phabricator.services.mozilla.com/D166636 --- devtools/client/locales/en-US/webconsole.properties | 5 +++-- .../test/browser/browser_webconsole_warning_group_csp.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/devtools/client/locales/en-US/webconsole.properties b/devtools/client/locales/en-US/webconsole.properties index f3502370e47d..2e060afd11b4 100644 --- a/devtools/client/locales/en-US/webconsole.properties +++ b/devtools/client/locales/en-US/webconsole.properties @@ -556,5 +556,6 @@ webconsole.group.cookieSameSiteLaxByDefaultEnabled2=Some cookies are misusing th # LOCALIZATION NOTE (webconsole.group.cookieSameSiteLaxByDefaultDisabled2): do not translate 'SameSite'. webconsole.group.cookieSameSiteLaxByDefaultDisabled2=Some cookies are misusing the recommended “SameSite“ attribute -# LOCALIZATION NOTE (webconsole.group.csp): Do not translate "Content Security Policy". -webconsole.group.csp=Content Security Policy warnings +# LOCALIZATION NOTE (webconsole.group.csp): do not translate +# 'Content-Security-Policy', as that's the name of the header. +webconsole.group.csp=Content-Security-Policy warnings diff --git a/devtools/client/webconsole/test/browser/browser_webconsole_warning_group_csp.js b/devtools/client/webconsole/test/browser/browser_webconsole_warning_group_csp.js index c848fd6f7175..bbd7ee4dd922 100644 --- a/devtools/client/webconsole/test/browser/browser_webconsole_warning_group_csp.js +++ b/devtools/client/webconsole/test/browser/browser_webconsole_warning_group_csp.js @@ -9,7 +9,7 @@ const TEST_FILE = "browser/devtools/client/webconsole/test/browser/test-warning-group-csp.html"; add_task(async function testCSPGroup() { - const GROUP_LABEL = "Content Security Policy warnings"; + const GROUP_LABEL = "Content-Security-Policy warnings"; const hud = await openNewTabAndConsole("https://example.org/" + TEST_FILE);