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

[html-audio-notifier] Extract inline script block and event handlers in WEB-INF/classes/jenkins/plugins/htmlaudio/app/PageDecorator/footer.jelly

XMLWordPrintable

      Problems

      == Inline Script Block
      Line: 14
      ----
      <script type="text/javascript">
              htmlAudioNotifierClient = new HtmlAudioNotifierClient(
                  '${app.rootUrlFromRequest}',
                  document.getElementById('htmlAudioNotifierPanel')
              );
          </script>
      ----
      
      == Inline Event Handler
      Line: 4
      ----
      <a class="enableControl" title="Click to enable audio notifications"
                      href="#" onclick="htmlAudioNotifierClient.toggle(); return false;">
      ----
      
      == Inline Event Handler
      Line: 8
      ----
      <a class="disableControl" title="Click to disable audio notifications"
                      href="#" onclick="htmlAudioNotifierClient.toggle(); return false;">
      ----
      

      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: