1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/tests/mochitest/mixedcontent/test_cssBefore1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 + <title>CSS :before styling 1</title> 1.8 + <script type="text/javascript" src="/MochiKit/Base.js"></script> 1.9 + <script type="text/javascript" src="/MochiKit/DOM.js"></script> 1.10 + <script type="text/javascript" src="/MochiKit/Style.js"></script> 1.11 + <script type="text/javascript" src="/MochiKit/Signal.js"></script> 1.12 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <script type="text/javascript" src="mixedContentTest.js"></script> 1.14 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.15 + <style type="text/css"> 1.16 + p:before 1.17 + { 1.18 + content: url(http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg); 1.19 + } 1.20 + </style> 1.21 + 1.22 + <script class="testbody" type="text/javascript"> 1.23 + 1.24 + function runTest() 1.25 + { 1.26 + isSecurityState("broken", "insecure content added by :before styling breaks security"); 1.27 + finish(); 1.28 + } 1.29 + 1.30 + function afterNavigationTest() 1.31 + { 1.32 + isSecurityState("broken", "security still broken after navigation"); 1.33 + finish(); 1.34 + } 1.35 + 1.36 + </script> 1.37 +</head> 1.38 + 1.39 +<body> 1.40 + <p> 1.41 + There is a moon surface left to this text 1.42 + </p> 1.43 +</body> 1.44 +</html>