unsecurePictureDup.html (768B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Unsecure img load in two windows</title> 5 <script src="/tests/SimpleTest/SimpleTest.js"></script> 6 <script type="text/javascript" src="mixedContentTest.js"></script> 7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 8 9 <script class="testbody" type="text/javascript"> 10 "use strict"; 11 12 async function runTest() 13 { 14 await isSecurityState("broken", "insecure <img> load breaks security"); 15 finish(); 16 } 17 18 async function afterNavigationTest() 19 { 20 await isSecurityState("broken", "security still broken after navigation"); 21 finish(); 22 } 23 24 </script> 25 </head> 26 27 <body> 28 <img src="http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/hugebmp.sjs" /> 29 </body> 30 </html>