test_javascriptPicture.html (690B)
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 async function runTest() 13 { 14 await isSecurityState("secure", "javascript: <img> should not break security"); 15 finish(); 16 } 17 18 async function afterNavigationTest() 19 { 20 await isSecurityState("secure", "Still secure after renavigation"); 21 finish(); 22 } 23 24 </script> 25 </head> 26 27 <body> 28 <img src="javascript:'Random data'" /> 29 </body> 30 </html>