-
Task
-
Resolution: Unresolved
-
Minor
Problems
== Inline Script Block Line: 40 ---- <script type="text/javascript"> function displayNotif(idx) { var el = document.getElementById("n" + idx); if(el.getAttribute("style")) { el.removeAttribute("style"); } else { el.setAttribute ("style", "display:none"); } } </script> ---- == Inline Event Handler Line: 52 ---- <a href="javascript:void(0)" onclick="displayNotif(${idx})"> ----
Solutions
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers
[JENKINS-74268] [report-info] Extract inline script block and event handler in org/jenkinsci/plugins/reportinfo/ReportInfo/main.jelly
Assignee | Original: Gael Colin [ gcolin ] |
Description |
Original:
h4. Problems {noformat} == Inline Event Handler Line: 52 ---- <a href="javascript:void(0)" onclick="displayNotif(${idx})"> ---- == Inline Script Block Line: 40 ---- <script type="text/javascript"> function displayNotif(idx) { var el = document.getElementById("n" + idx); if(el.getAttribute("style")) { el.removeAttribute("style"); } else { el.setAttribute ("style", "display:none"); } } </script> ---- == Inline Event Handler Line: 52 ---- <a href="javascript:void(0)" onclick="displayNotif(${idx})"> ---- == Inline Script Block Line: 40 ---- <script type="text/javascript"> function displayNotif(idx) { var el = document.getElementById("n" + idx); if(el.getAttribute("style")) { el.removeAttribute("style"); } else { el.setAttribute ("style", "display:none"); } } </script> ---- {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: 40 ---- <script type="text/javascript"> function displayNotif(idx) { var el = document.getElementById("n" + idx); if(el.getAttribute("style")) { el.removeAttribute("style"); } else { el.setAttribute ("style", "display:none"); } } </script> ---- == Inline Event Handler Line: 52 ---- <a href="javascript:void(0)" onclick="displayNotif(${idx})"> ---- {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: [report-info] Extract inline script blocks and event handlers in org/jenkinsci/plugins/reportinfo/ReportInfo/main.jelly | New: [report-info] Extract inline script block and event handler in org/jenkinsci/plugins/reportinfo/ReportInfo/main.jelly |