1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/tests/mochitest/mixedcontent/test_bug329869.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 + <title>dymanic script load</title> 1.8 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.9 + <script type="text/javascript" src="mixedContentTest.js"></script> 1.10 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.11 + 1.12 + <script class="testbody" type="text/javascript"> 1.13 + 1.14 + hasMixedActiveContent = true; 1.15 + 1.16 + function runTest() 1.17 + { 1.18 + isSecurityState("secure"); 1.19 + window.setTimeout(function() 1.20 + { 1.21 + var newElement = document.createElement("script"); 1.22 + newElement.src= "http://example.org/tests/security/manager/ssl/tests/mochitest/mixedcontent/bug329869.js"; 1.23 + document.body.appendChild(newElement); 1.24 + }, 0); 1.25 + } 1.26 + 1.27 + function afterNavigationTest() 1.28 + { 1.29 + isSecurityState("broken", "security still broken after navigation"); 1.30 + finish(); 1.31 + } 1.32 + 1.33 + </script> 1.34 +</head> 1.35 + 1.36 +<body> 1.37 +</body> 1.38 +</html>