Bug 1938475 [Wayland] Fallback to monitor screen scale if we're missing wayland surfa...
[gecko.git] / security / manager / ssl / tests / mochitest / mixedcontent / test_javascriptPicture.html
blob6b74b3062f846b1c995ae623b1140ebc78c5a5ef
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" />
9 <script class="testbody" type="text/javascript">
10 "use strict";
12 async function runTest()
14 await isSecurityState("secure", "javascript: <img> should not break security");
15 finish();
18 async function afterNavigationTest()
20 await isSecurityState("secure", "Still secure after renavigation");
21 finish();
24 </script>
25 </head>
27 <body>
28 <img src="javascript:'Random data'" />
29 </body>
30 </html>