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

[diagnostics] Extract inline script block and event handler in org/jenkinsci/plugins/diagnostics/DiagnosticsAction/ajaxReport.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 149
      ----
      <script defer="defer">
                  refreshPart('report-area',"./ajaxReport?sessionId=${sessionId}");
                </script>
      ----
      
      == Inline Event Handler
      Line: 70
      ----
      <l:icon
                                       title="${%Cancel}"
                                       alt="${%Cancel}"
                                       tooltip="${%Cancel}"
                                       onclick="return cancelSession(this)"
                                       src="${rootURL}/plugin/diagnostics/images/32x32/stop.png"/>
      ----
      

      Solutions

      https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
      https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers

            Unassigned Unassigned
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: