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

[plot] Extract inline script block and event handler in hudson/plugins/plot/PlotReport/index.jelly

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Minor Minor
    • plot-plugin

      Problems

      == Inline Script Block
      Line: 73
      ----
      <script>
                function jump(menu){
                  window.location.hash = menu.value;
                }
              </script>
      ----
      
      == Inline Event Handler
      Line: 78
      ----
      <select name="choice" onChange="jump(this)">
      ----
      

      Solutions

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

          [JENKINS-74098] [plot] Extract inline script block and event handler in hudson/plugins/plot/PlotReport/index.jelly

          Basil Crow created issue -
          Basil Crow made changes -
          Summary Original: [plot] Extract inline script blocks and lsevent handlers in hudson/plugins/plot/PlotReport/index.jelly New: [plot] Extract inline script blocks and event handlers in hudson/plugins/plot/PlotReport/index.jelly
          Basil Crow made changes -
          Assignee Original: Veaceslav Gaidarji [ vgaidarji ]
          Basil Crow made changes -
          Description Original: h4. Problems

          {noformat}
          == Inline Script Block
          Line: 73
          ----
          <script>
                    function jump(menu){
                      window.location.hash = menu.value;
                    }
                  </script>
          ----

          == Inline Event Handler
          Line: 78
          ----
          <select name="choice" onChange="jump(this)">
          ----

          == Inline Script Block
          Line: 73
          ----
          <script>
                    function jump(menu){
                      window.location.hash = menu.value;
                    }
                  </script>
          ----

          == Inline Event Handler
          Line: 78
          ----
          <select name="choice" onChange="jump(this)">
          ----
          {noformat}

          h4. Solutions

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          [https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers]
          New: h4. Problems

          {noformat}
          == Inline Script Block
          Line: 73
          ----
          <script>
                    function jump(menu){
                      window.location.hash = menu.value;
                    }
                  </script>
          ----

          == Inline Event Handler
          Line: 78
          ----
          <select name="choice" onChange="jump(this)">
          ----
          {noformat}

          h4. Solutions

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          [https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers]
          Summary Original: [plot] Extract inline script blocks and event handlers in hudson/plugins/plot/PlotReport/index.jelly New: [plot] Extract inline script block and event handler in hudson/plugins/plot/PlotReport/index.jelly
          Shlomo made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Shlomo made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Shlomo made changes -
          Remote Link New: This issue links to "PR (Web Link)" [ 30234 ]
          Mark Waite made changes -
          Released As New: https://github.com/jenkinsci/plot-plugin/releases/tag/plot-2.2.0
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Closed [ 6 ]

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

              Created:
              Updated:
              Resolved: