Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32590

Inline CSS is ignored in published HTML reports

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • htmlpublisher-plugin
    • None
    • Jenkins 1.645, HTML published plugin 1.10

      I use diff-cover to produce an HTML report about missing test coverage for GitHub pull requests, and I use the HTML Publisher plugin to publish that reports.

      My problem: all inline CSS in the HTML report produced by diff-cover is ignored. Instead of seeing uncovered code lines highlighted in red I see this:

      The Chrome Developer Tools shows this error in the console:

      > Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-38w8qtDewK1eDzv93gUtrP2TU2U9nk/1k3yxhYDPDU0='), or a nonce ('nonce-...') is required to enable inline execution.

      (There's also an error about blocked script execution, but that seems unrelated.)

          [JENKINS-32590] Inline CSS is ignored in published HTML reports

          Marius Gedminas created issue -
          Daniel Beck made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 168245 ] New: JNJira + In-Review [ 198380 ]
          Richard Bywater made changes -
          Assignee Original: mcrooney [ mcrooney ] New: Richard Bywater [ r2b2_nz ]
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Ashwini made changes -
          Link New: This issue is blocked by JENKINS-65344 [ JENKINS-65344 ]

            r2b2_nz Richard Bywater
            mgedmin Marius Gedminas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: