Closed Bug 1946862 Opened 6 months ago Closed 6 months ago

Port bug 1940273: Add CSP meta tag

Categories

(Thunderbird :: Build Config, defect)

defect

Tracking

(thunderbird_esr128 unaffected, thunderbird136 unaffected)

RESOLVED FIXED
137 Branch
Tracking Status
thunderbird_esr128 --- unaffected
thunderbird136 --- unaffected

People

(Reporter: heather, Assigned: darktrojan)

References

Details

Attachments

(2 files, 2 obsolete files)

No description provided.
Summary: Make sure messenger.xhtml has a CSP → Port bug 1940273: Add CSP to messenger.xhtml
Assignee: nobody → heather
Status: NEW → ASSIGNED
Attachment #9464750 - Attachment description: Bug 1946862 - Port bug 1940273: Add CSP to messenger.xhtml. r=aleca → Bug 1946862 - Port bug 1940273: Add CSP meta tag. r=aleca
Summary: Port bug 1940273: Add CSP to messenger.xhtml → Port bug 1940273: Add CSP meta tag
Keywords: regression
No longer regressed by: 1940273
See Also: → 1940273
Attachment #9465010 - Attachment description: WIP: Bug 1946862 - Port bug 1940273: Temporarily ignore CSPs in Thunderbird → Bug 1946862 - Port bug 1940273: Temporarily ignore CSPs in Thunderbird. r=tschuster!,aleca!

I'll take this from here and add the tags instead of an exception. Even if the most permissive tag is better than no tag, and puts us in control without having to get approval from somebody at Firefox HQ.

Assignee: heather → geoff
Attachment #9465010 - Attachment is obsolete: true
Attachment #9464750 - Attachment is obsolete: true

I've added tags to all of the XHTML files that cause an assertion failure in tests. I've not added
tags to the files that don't. This should provide a good indication of windows we don't have test
coverage of.

I've tried to handle the implications of adding a CSP. There will surely be places I missed.
If a document has inline styles, or contains one of the XUL menu elements, I added unsafe-inline
to the policy, otherwise I didn't.

I've not added tags to the files that don't.

Won't that make debug builds unusable for such areas? Might be better to add a greppable comment about missing test coverage.

These tags were added programmatically and I haven't checked all of the windows to see if they still work.

Target Milestone: --- → 137 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/3cb85afec9d6
Add CSP meta tags to all windows that don't appear in tests. r=mkmelin
https://hg.mozilla.org/comm-central/rev/7a94400ed8f1
Add CSP meta tags to all windows that appear in tests. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Regressions: 1947440
Regressions: 1947441
Regressions: 1947442
Depends on: 1947959
Depends on: 1947962
Depends on: 1947964
Depends on: 1947965
No longer depends on: 1947959, 1947962, 1947964, 1947965
Regressions: 1947993
Regressions: 1953649
See Also: → 1954282
Regressions: 1956436
Regressions: 1956440
Regressions: 1962927
Regressions: 1963467
Regressions: 1964799
Regressions: 1975117
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: