content/base/test/csp/file_CSP_bug909029_star.html

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:d9e432f91e7e
1 <!doctype html>
2 <html>
3 <head>
4 <link rel='stylesheet' type='text/css'
5 href='file_CSP.sjs?testid=starExternalStylesLoaded&type=text/css' />
6 </head>
7 <body>
8 <p id="inline-style">This should be green</p>
9 <p id="inline-script">This should be black</p>
10 <style>
11 p#inline-style { color:rgb(0, 128, 0); }
12 </style>
13 <script>
14 // Use inline script to set a style attribute
15 document.getElementById("inline-script").style.color = "rgb(0, 128, 0)";
16 </script>
17 <img src="file_CSP.sjs?testid=starExternalImgLoaded&type=img/png" />
18 </body>
19 </html>

mercurial