-
Task
-
Resolution: Unresolved
-
Minor
Problem
== Inline Script Block Line: 5 ---- <script> // correct the size of the frame function correctSizeOfFrame() { var neoReportIFrame = document.getElementById('neoReportIFrame'); neoReportIFrame.height = window.innerHeight - 150; } // add a window resize event if (window.onresize) { var curronresize = window.onresize; // store the old function window.onresize = function() { curronresize(); correctSizeOfFrame(); }; } else { window.onresize = correctSizeOfFrame; } // add an onload event to resize the frame. // from http://stackoverflow.com/questions/807878/javascript-that-executes-after-page-load if (window.onload) { var curronload = window.onload; // store the old function window.onload = function() { curronload(); correctSizeOfFrame(); }; } else { window.onload = correctSizeOfFrame; } </script> ----
Solution
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
[JENKINS-74438] [neoload-jenkins-plugin] Extract inline script block in org/jenkinsci/plugins/neoload/integration/NeoResultsAction/index.jelly
Description |
Original:
h4. Problems {noformat} == Inline Script Block Line: 5 ---- <script> // correct the size of the frame function correctSizeOfFrame() { var neoReportIFrame = document.getElementById('neoReportIFrame'); neoReportIFrame.height = window.innerHeight - 150; } // add a window resize event if (window.onresize) { var curronresize = window.onresize; // store the old function window.onresize = function() { curronresize(); correctSizeOfFrame(); }; } else { window.onresize = correctSizeOfFrame; } // add an onload event to resize the frame. // from http://stackoverflow.com/questions/807878/javascript-that-executes-after-page-load if (window.onload) { var curronload = window.onload; // store the old function window.onload = function() { curronload(); correctSizeOfFrame(); }; } else { window.onload = correctSizeOfFrame; } </script> ---- == Inline Script Block Line: 5 ---- <script> // correct the size of the frame function correctSizeOfFrame() { var neoReportIFrame = document.getElementById('neoReportIFrame'); neoReportIFrame.height = window.innerHeight - 150; } // add a window resize event if (window.onresize) { var curronresize = window.onresize; // store the old function window.onresize = function() { curronresize(); correctSizeOfFrame(); }; } else { window.onresize = correctSizeOfFrame; } // add an onload event to resize the frame. // from http://stackoverflow.com/questions/807878/javascript-that-executes-after-page-load if (window.onload) { var curronload = window.onload; // store the old function window.onload = function() { curronload(); correctSizeOfFrame(); }; } else { window.onload = correctSizeOfFrame; } </script> ---- {noformat} h4. Solution [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks] |
New:
h4. Problem {noformat} == Inline Script Block Line: 5 ---- <script> // correct the size of the frame function correctSizeOfFrame() { var neoReportIFrame = document.getElementById('neoReportIFrame'); neoReportIFrame.height = window.innerHeight - 150; } // add a window resize event if (window.onresize) { var curronresize = window.onresize; // store the old function window.onresize = function() { curronresize(); correctSizeOfFrame(); }; } else { window.onresize = correctSizeOfFrame; } // add an onload event to resize the frame. // from http://stackoverflow.com/questions/807878/javascript-that-executes-after-page-load if (window.onload) { var curronload = window.onload; // store the old function window.onload = function() { curronload(); correctSizeOfFrame(); }; } else { window.onload = correctSizeOfFrame; } </script> ---- {noformat} h4. Solution [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks] |
Summary | Original: [neoload-jenkins-plugin] Extract inline script blocks in org/jenkinsci/plugins/neoload/integration/NeoResultsAction/index.jelly | New: [neoload-jenkins-plugin] Extract inline script block in org/jenkinsci/plugins/neoload/integration/NeoResultsAction/index.jelly |