Open Bug 1242016 (csp-console-logging) Opened 9 years ago Updated 3 months ago

[meta] Improve CSP console logging

Categories

(Core :: DOM: Security, task, P5)

task

Tracking

()

People

(Reporter: ckerschb, Unassigned)

References

(Depends on 7 open bugs, Blocks 1 open bug)

Details

(Keywords: meta, Whiteboard: [domsecurity-meta])

      No description provided.
Blocks: csp-w3c-3
Depends on: 1134084
Depends on: 1242019
Keywords: meta
Whiteboard: [domsecurity-meta]
No longer blocks: 1247803
Depends on: 1247803
Depends on: 1288896
Assignee: nobody → stephouillon
Status: NEW → ASSIGNED
Depends on: 1304645
Depends on: 1310875
Depends on: 1322255
Taking per bug 1322255 comment 2
Assignee: stephouillon → fbraun
Depends on: 1399436
No longer depends on: 1405725
Assignee: fbraun → nobody
Status: ASSIGNED → NEW
Depends on: 1441220
Depends on: 1458200
Priority: -- → P5

I'm not sure which of the dep bugs applies here, so sorry for commenting on the meta bug.

I've just been trying to generate an appropriate CSP header value for treeherder.mozilla.org (bug 1270157), however the LastPass extension triggers unhelpful CSP violation reports (that we've just started collecting) that caused a lot of confusion until I realised they were from an extension.

Chrome marks Web extension violations as having a blocked-uri property of chrome-extension, which makes them much easier to debug.

In comparison, Firefox Nightly reports a blocked-uri of inline with a source-file of the HTML page and a column/line number of 1.

Is this something that's tracked somewhere? (Making blocked-uri clearer that is; the proposal to stop CSP applying to web extensions is separate/longer term)

Flags: needinfo?(ckerschb)
Summary: Improve CSP console logging → [meta] Improve CSP console logging

(In reply to Ed Morley [:emorley] from comment #2)

Is this something that's tracked somewhere? (Making blocked-uri clearer that is; the proposal to stop CSP applying to web extensions is separate/longer term)

Sorry for the lag here. As you mentioned correctly, those messages are unhelpful. I agree, we should consider using some sort of 'extension' keyword in the console message so developers have an idea what is happening. I think bug 965637 will be really helpful to sort out those kinds of problems. We are actively working on Bug 965637 and I hope to get that out the door soon. Sorry for not having any better answers than that for now.

Flags: needinfo?(ckerschb)
Alias: csp-console-logging
Depends on: 1540257
Depends on: 1561924
Depends on: 1562908
Severity: normal → S3
Depends on: 1796728
Depends on: 1591807
Depends on: 1800249
Depends on: 1645745
No longer depends on: 1279894
Depends on: 1279894
Depends on: 1804038
Depends on: 1650058
Depends on: 1525624
Type: defect → task
Depends on: 1848315
Depends on: 1876303
Depends on: 1886794
You need to log in before you can comment on or make changes to this bug.