test_bug455367.html (865B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>No content image doesn't break security</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 SpecialPowers.pushPrefEnv( 15 {"set": [["security.mixed_content.upgrade_display_content", false]]}, 16 null); 17 await isSecurityState("broken", "broken"); 18 finish(); 19 } 20 21 async function afterNavigationTest() 22 { 23 await isSecurityState("broken", "broken after navigation"); 24 finish(); 25 } 26 27 </script> 28 </head> 29 30 <body> 31 <img src="https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/redirecttoemptyimage.sjs" /> 32 </body> 33 </html>