Closed Bug 1660417 Opened 4 years ago Closed 4 years ago

CSP entries in ContentSecurityManager log are not valid yaml

Categories

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

defect

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: jens1o, Assigned: jens1o)

Details

(Whiteboard: [domsecurity-active])

Attachments

(1 file)

doContentSecurityCheck:
  - channelURI: chrome://global/skin/in-content/info-pages.css
  - loadingPrincipal: SystemPrincipal
  - triggeringPrincipal: SystemPrincipal
  - principalToInherit: nullptr
  - redirectChain:
  - internalContentPolicyType: TYPE_INTERNAL_STYLESHEET
  - externalContentPolicyType: TYPE_STYLESHEET
  - upgradeInsecureRequests: false
  - initialSecurityChecksDone: false
  - allowDeprecatedSystemRequests: false
  - CSP:
    - default-src chrome: resource:; img-src chrome: resource: data:; object-src 'none'
  - securityFlags:
    - SEC_ALLOW_CROSS_ORIGIN_INHERITS_SEC_CONTEXT
    - SEC_ALLOW_CHROME

various yaml parsers fail at img-src chrome:, e.g.

yaml.scanner.ScannerError: mapping values are not allowed here
  in "<unicode string>", line 13, column 52:
     ... hrome: resource:; img-src chrome: resource: data:; object-src 'none'
                                         ^
Assignee: nobody → mozilla
Status: NEW → ASSIGNED
Severity: -- → S4
Priority: -- → P2
Whiteboard: [domsecurity-active]

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jens1o, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(mozilla)

I currently can't take a look at this as my Phabricator account has got disabled and I can't get it reenabled and I am currently waiting for help to get it reinstated.

Pushed by fbraun@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b447e9956b44 Make sure CSP policy strings are logged as valid yaml r=freddyb,ckerschb
Flags: needinfo?(mozilla)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: