summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/test/browser/test-csp-violation-inline.html
blob: b3234f787d5c734015b8bb2d97305c6d3637452b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 <html>
      <head>
        <title>CSP Inline Violations Test</title>

      </head>
      <body>
          This Background should be neither Red nor Blue c:
      </body>
      <script>
        "use strict";
        window.violate = () =>{
          const style = document.createElement("style");
          style.innerHTML = "body { background-color: red; }";
          document.head.appendChild(style);
        };
      </script>

      <style>
        background-color:blue;
      </style>
</html>