test_securePicture.html (758B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Secure img load</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 loadAsInsecure = true; 13 14 async function runTest() 15 { 16 await isSecurityState("insecure", "left insecure"); 17 finish(); 18 } 19 20 async function afterNavigationTest() 21 { 22 await isSecurityState("insecure", "left insecure after renavigation"); 23 finish(); 24 } 25 26 </script> 27 </head> 28 29 <body> 30 <img src="https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg" /> 31 </body> 32 </html>