content/base/test/csp/file_CSP_bug909029_star.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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