content/base/test/csp/file_CSP_bug909029_none.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/test/csp/file_CSP_bug909029_none.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +<!doctype html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <!-- file_CSP.sjs mocks a resource load -->
     1.8 +    <link rel='stylesheet' type='text/css'
     1.9 +          href='file_CSP.sjs?testid=noneExternalStylesBlocked&type=text/css' />
    1.10 +  </head>
    1.11 +  <body>
    1.12 +    <p id="inline-style">This should be green</p>
    1.13 +    <p id="inline-script">This should be black</p>
    1.14 +    <style>
    1.15 +      p#inline-style { color:rgb(0, 128, 0); }
    1.16 +    </style>
    1.17 +    <script>
    1.18 +      // Use inline script to set a style attribute
    1.19 +      document.getElementById("inline-script").style.color = "rgb(0, 128, 0)";
    1.20 +    </script>
    1.21 +    <img src="file_CSP.sjs?testid=noneExternalImgLoaded&type=img/png" />
    1.22 +  </body>
    1.23 +</html>

mercurial