Closed Bug 1564965 Opened 5 years ago Closed 5 years ago

Port bug 1497211: Apply Meta CSP to about:support

Categories

(Thunderbird :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 70.0

People

(Reporter: Paenglab, Assigned: Paenglab)

Details

Attachments

(1 file, 1 obsolete file)

Bug 1497211 added a CSP header to the page.

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #9077153 - Flags: review?(jorgk)
Comment on attachment 9077153 [details] [diff] [review]
1564965-meta-CSP-aboutSupport.patch

Nice, have you tried it?
Attachment #9077153 - Flags: review?(jorgk) → review+

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/f975a8eb3c19
Port bug 1497211: Apply Meta CSP to about:support. r=jorgk

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 70.0

Backout:
https://hg.mozilla.org/comm-central/rev/ba31676a4f3d301d291a08ac9398b02827a149b8

Sorry, I had to back this out since it's causing test failures which I confirmed with a local backout first. Aceman offered to look into this further.

Status: RESOLVED → REOPENED
Flags: needinfo?(acelists)
Resolution: FIXED → ---
Target Milestone: Thunderbird 70.0 → ---

It's because that CSP line still does not allow all scripts:
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“default-src”). support:173:17

It seems due to this the checkbox to reveal hidden data does not work in tests, which fail.

Flags: needinfo?(acelists)
Attached patch 1564965.patchSplinter Review

This works for me, converting some inline event handlers in element attributes to event listeners.
Try run:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=8294fcc2ac8d5267ea8d076b59ef2b6ae72d7075

Attachment #9077153 - Attachment is obsolete: true
Attachment #9077476 - Flags: review?(jorgk)
Attachment #9077476 - Flags: review?(jorgk) → review?(geoff)
Comment on attachment 9077476 [details] [diff] [review]
1564965.patch

Nice work.
Attachment #9077476 - Flags: review?(geoff) → review+

Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/548774d8cc4a
Port bug 1497211: Apply Meta CSP to about:support. r=darktrojan

Status: REOPENED → RESOLVED
Closed: 5 years ago5 years ago
Resolution: --- → FIXED

Please make sure you change the author when picking up someone else's patch. For the record, this HG trick is useful:
hg commit --amend -u"newuser <newuser@examle.com>"

Target Milestone: --- → Thunderbird 70.0

Damn, I forgot the DONTBUILD option and since cancelling anything on the tree is broken, this will do a full build now :-(

Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: