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

[mentor-questa-vrm] Extract inline script block in com/mentor/questa/vrm/jenkins/QuestaVrmPortlet/table.jelly

      Problem

      == Inline Script Block
      Line: 74
      ----
      <script>
      	document.addEventListener("DOMContentLoaded",function(){
      		onload();
      		var img = document.createElement("img");
      		img.src="${resURL}/plugin/mentor-questa-vrm/icons/mentorlogo.png"
      		img.height="14"
      		img.title="Mentor Graphics"
      		img.alt="[mentor logo]" 
      		document.getElementById("title-${it.id}").insertBefore( img, document.getElementById("title-${it.id}").childNodes[0]);
      	});
        </script>
      ----
      

      Solution

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

          [JENKINS-74497] [mentor-questa-vrm] Extract inline script block in com/mentor/questa/vrm/jenkins/QuestaVrmPortlet/table.jelly

          Basil Crow created issue -
          Basil Crow made changes -
          Assignee Original: Questa Vrm [ questa_vrm ]
          Basil Crow made changes -
          Description Original: h4. Problems

          {noformat}
          == Inline Script Block
          Line: 74
          ----
          <script>
          document.addEventListener("DOMContentLoaded",function(){
          onload();
          var img = document.createElement("img");
          img.src="${resURL}/plugin/mentor-questa-vrm/icons/mentorlogo.png"
          img.height="14"
          img.title="Mentor Graphics"
          img.alt="[mentor logo]"
          document.getElementById("title-${it.id}").insertBefore( img, document.getElementById("title-${it.id}").childNodes[0]);
          });
            </script>
          ----

          == Inline Script Block
          Line: 74
          ----
          <script>
          document.addEventListener("DOMContentLoaded",function(){
          onload();
          var img = document.createElement("img");
          img.src="${resURL}/plugin/mentor-questa-vrm/icons/mentorlogo.png"
          img.height="14"
          img.title="Mentor Graphics"
          img.alt="[mentor logo]"
          document.getElementById("title-${it.id}").insertBefore( img, document.getElementById("title-${it.id}").childNodes[0]);
          });
            </script>
          ----
          {noformat}

          h4. Solution

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

          {noformat}
          == Inline Script Block
          Line: 74
          ----
          <script>
          document.addEventListener("DOMContentLoaded",function(){
          onload();
          var img = document.createElement("img");
          img.src="${resURL}/plugin/mentor-questa-vrm/icons/mentorlogo.png"
          img.height="14"
          img.title="Mentor Graphics"
          img.alt="[mentor logo]"
          document.getElementById("title-${it.id}").insertBefore( img, document.getElementById("title-${it.id}").childNodes[0]);
          });
            </script>
          ----
          {noformat}

          h4. Solution

          [https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks]
          Summary Original: [mentor-questa-vrm] Extract inline script blocks in com/mentor/questa/vrm/jenkins/QuestaVrmPortlet/table.jelly New: [mentor-questa-vrm] Extract inline script block in com/mentor/questa/vrm/jenkins/QuestaVrmPortlet/table.jelly

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

              Created:
              Updated: