Closed Bug 1809888 Opened 2 years ago Closed 2 years ago

Rename "Content Security Policy:" prefix into "Content-Security-Policy" to match the header name

Categories

(Core :: DOM: Security, task)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: nchevobbe, Assigned: maltejur)

References

Details

(Keywords: good-first-bug, Whiteboard: [domsecurity-backlog])

Attachments

(1 file)

Let's rename https://searchfox.org/mozilla-central/rev/893a8f062ec6144c84403fbfb0a57234418b89cf/dom/security/nsCSPUtils.cpp#204

cspMsg.AppendLiteral(u"Content Security Policy: ");

so it mentions the actual header name and is more consistent with the group label we'll have in the console (see Bug 1809601)

Note that we should probably used a localized string (with a note to not translate "Content-Security-Policy") to handle the colon as some language, like French, requires a non-breaking space before it.

See Also: → 1809601
Severity: -- → N/A
Keywords: good-first-bug
Whiteboard: [domsecurity-backlog]
Attachment #9331218 - Attachment description: WIP: Bug 1809888: Rename "Content Security Policy:" console log prefix to "Content-Security-Policy:". r?freddy → WIP: Bug 1809888: Rename "Content Security Policy:" console log prefix to "Content-Security-Policy:". r?freddyb
Assignee: nobody → mjurgens
Attachment #9331218 - Attachment description: WIP: Bug 1809888: Rename "Content Security Policy:" console log prefix to "Content-Security-Policy:". r?freddyb → Bug 1809888: Rename "Content Security Policy:" console log prefix to "Content-Security-Policy:". r?freddyb
Pushed by fbraun@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/14866e51f9ff Rename "Content Security Policy:" console log prefix to "Content-Security-Policy:". r=freddyb,devtools-reviewers
Regressions: 1832358
No longer regressions: 1832358
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: