Closed Bug 1268327 Opened 8 years ago Closed 8 years ago

ReferrerPolicy should not be delivered through CSPRO

Categories

(Core :: DOM: Security, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla50
Tracking Status
firefox50 --- fixed

People

(Reporter: tnguyen, Assigned: ckerschb)

References

(Blocks 1 open bug)

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file, 1 obsolete file)

In [1], should check report-only before adding referrerPolicy (only add in case non-report-only policy)
[1] https://dxr.mozilla.org/mozilla-central/source/dom/security/nsCSPContext.cpp#335
Thanks Thomas - please also add a test to make sure we never regress that.
Whiteboard: [domsecurity-active]
Whiteboard: [domsecurity-active] → [domsecurity-backlog]
Blocks: csp-w3c-3
Priority: -- → P1
Assignee: nobody → ckerschb
Status: NEW → ASSIGNED
Whiteboard: [domsecurity-backlog] → [domsecurity-active]
Comment on attachment 8764185 [details] [diff] [review]
bug_1268327_referrer_policy_ro.patch

Review of attachment 8764185 [details] [diff] [review]:
-----------------------------------------------------------------

Lgtm.
Could we add a case that both a Content-Security-Policy-Report-Only header and a Content-Security-Policy header are present?
Attachment #8764185 - Flags: review?(tnguyen) → review+
(In reply to Thomas Nguyen[:tnguyen] from comment #3)
> Could we add a case that both a Content-Security-Policy-Report-Only header
> and a Content-Security-Policy header are present?

Sure can, added another test that delivers a CSP and a CSPRO.
Carrying over r+!
TRY looks good, this is ready to land!
Attachment #8764185 - Attachment is obsolete: true
Attachment #8764217 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/0bed705c1430
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: