Bug 1938475 [Wayland] Fallback to monitor screen scale if we're missing wayland surfa...
[gecko.git] / security / manager / ssl / tests / mochitest / mixedcontent / test_documentWrite1.html
blobdf4755533cf1969f791b6342797c43a791108bc4
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>document.write('<img src="http://">')</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("broken", "insecure <img> written dynamically breaks security");
15 finish();
18 async function afterNavigationTest()
20 await isSecurityState("broken", "security still broken after navigation");
21 finish();
24 </script>
25 </head>
27 <body>
28 <script class="testbody" type="text/javascript">
29 "use strict";
30 document.write(
31 "<img src='http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg' />");
32 </script>
33 </body>
34 </html>