-
Task
-
Resolution: Fixed
-
Minor
Problems
== Inline Script Block Line: 90 ---- <script type="text/javascript"> function updateBody(tabId, page) { document.getElementById(selectedTab).setAttribute("class", "unselected"); tab = document.getElementById(tabId) tab.setAttribute("class", "selected"); selectedTab = tabId; iframe = document.getElementById("myframe"); iframe.src = encodeURIComponent(tab.getAttribute("value")).replace(/%2F/g, '/'); } function init(tabId){ updateBody(tabId); } var selectedTab = "tab1" </script> ---- == Inline Event Handler Line: 108 ---- <body onload="init('tab1');"> ----
Solutions
https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks
https://www.jenkins.io/doc/developer/security/csp/#inline-event-handlers
[JENKINS-74015] [htmlpublisher] Extract inline script block and event handler in htmlpublisher/HtmlPublisher/header.html
Assignee | Original: Richard Bywater [ r2b2_nz ] |
Summary | Original: [htmlpublisher] Extract inline script blocks and lsevent handlers in htmlpublisher/HtmlPublisher/header.html | New: [htmlpublisher] Extract inline script blocks and event handlers in htmlpublisher/HtmlPublisher/header.html |
Description |
Original:
h4. Problems {noformat} == Inline Script Block Line: 90 ---- <script type="text/javascript"> function updateBody(tabId, page) { document.getElementById(selectedTab).setAttribute("class", "unselected"); tab = document.getElementById(tabId) tab.setAttribute("class", "selected"); selectedTab = tabId; iframe = document.getElementById("myframe"); iframe.src = encodeURIComponent(tab.getAttribute("value")).replace(/%2F/g, '/'); } function init(tabId){ updateBody(tabId); } var selectedTab = "tab1" </script> ---- == Inline Event Handler Line: 108 ---- <body onload="init('tab1');"> ---- == Inline Script Block Line: 90 ---- <script type="text/javascript"> function updateBody(tabId, page) { document.getElementById(selectedTab).setAttribute("class", "unselected"); tab = document.getElementById(tabId) tab.setAttribute("class", "selected"); selectedTab = tabId; iframe = document.getElementById("myframe"); iframe.src = encodeURIComponent(tab.getAttribute("value")).replace(/%2F/g, '/'); } function init(tabId){ updateBody(tabId); } var selectedTab = "tab1" </script> ---- == Inline Event Handler Line: 108 ---- <body onload="init('tab1');"> ---- {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: 90 ---- <script type="text/javascript"> function updateBody(tabId, page) { document.getElementById(selectedTab).setAttribute("class", "unselected"); tab = document.getElementById(tabId) tab.setAttribute("class", "selected"); selectedTab = tabId; iframe = document.getElementById("myframe"); iframe.src = encodeURIComponent(tab.getAttribute("value")).replace(/%2F/g, '/'); } function init(tabId){ updateBody(tabId); } var selectedTab = "tab1" </script> ---- == Inline Event Handler Line: 108 ---- <body onload="init('tab1');"> ---- {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: [htmlpublisher] Extract inline script blocks and event handlers in htmlpublisher/HtmlPublisher/header.html | New: [htmlpublisher] Extract inline script block and event handler in htmlpublisher/HtmlPublisher/header.html |
Assignee | New: Yaroslav Afenkin [ yafenkin ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Remote Link | New: This issue links to "jenkinsci/htmlpublisher-plugin/pull/312 (Web Link)" [ 30122 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Fixed but Unreleased [ 10203 ] |
Released As | New: 1.37 | |
Status | Original: Fixed but Unreleased [ 10203 ] | New: Closed [ 6 ] |