1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/test/csp/file_CSP_main.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 1.4 +<html> 1.5 + <head> 1.6 + <link rel='stylesheet' type='text/css' 1.7 + href='http://example.org/tests/content/base/test/csp/file_CSP.sjs?testid=style_bad&type=text/css' /> 1.8 + <link rel='stylesheet' type='text/css' 1.9 + href='file_CSP.sjs?testid=style_good&type=text/css' /> 1.10 + 1.11 + <!-- Used to embed inline styles here for testing fonts, but can't do that --> 1.12 + <!-- due to bug 763879 (block inline styles). Moved these to an external, CSS --> 1.13 + <!-- file (file_CSP.css). --> 1.14 + <link rel='stylesheet' type='text/css' href='file_CSP.css' /> 1.15 + 1.16 + </head> 1.17 + <body> 1.18 + <!-- these should be stopped by CSP. :) --> 1.19 + <img src="http://example.org/tests/content/base/test/csp/file_CSP.sjs?testid=img_bad&type=img/png"> </img> 1.20 + <audio src="http://example.org/tests/content/base/test/csp/file_CSP.sjs?testid=media_bad&type=audio/vorbis"></audio> 1.21 + <script src='http://example.org/tests/content/base/test/csp/file_CSP.sjs?testid=script_bad&type=text/javascript'></script> 1.22 + <iframe src='http://example.org/tests/content/base/test/csp/file_CSP.sjs?testid=frame_bad&content=FAIL'></iframe> 1.23 + <object width="10" height="10"> 1.24 + <param name="movie" value="http://example.org/tests/content/base/test/csp/file_CSP.sjs?testid=object_bad&type=application/x-shockwave-flash"> 1.25 + <embed src="http://example.org/tests/content/base/test/csp/file_CSP.sjs?testid=object_bad&type=application/x-shockwave-flash"></embed> 1.26 + </object> 1.27 + 1.28 + <!-- these should load ok. :) --> 1.29 + <img src="file_CSP.sjs?testid=img_good&type=img/png" /> 1.30 + <audio src="file_CSP.sjs?testid=media_good&type=audio/vorbis"></audio> 1.31 + <script src='file_CSP.sjs?testid=script_good&type=text/javascript'></script> 1.32 + <iframe src='file_CSP.sjs?testid=frame_good&content=PASS'></iframe> 1.33 + 1.34 + <object width="10" height="10"> 1.35 + <param name="movie" value="file_CSP.sjs?testid=object_good&type=application/x-shockwave-flash"> 1.36 + <embed src="file_CSP.sjs?testid=object_good&type=application/x-shockwave-flash"></embed> 1.37 + </object> 1.38 + 1.39 + <!-- XHR tests... they're taken care of in this script, 1.40 + and since the URI doesn't have any 'testid' values, 1.41 + it will just be ignored by the test framework. --> 1.42 + <script src='file_CSP_main.js'></script> 1.43 + 1.44 + <!-- Support elements for the @font-face test --> 1.45 + <div class="div_arbitrary_good">arbitrary good</div> 1.46 + <div class="div_arbitrary_bad">arbitrary_bad</div> 1.47 + </body> 1.48 +</html>