Bug 1936575 - PART 2: Do not trigger default browser prompt until ToS is accepted...
[gecko.git] / security / manager / ssl / tests / mochitest / mixedcontent / test_bug329869.html
blobccb9a8d9cf376896adb5757e3711a31286409478
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>dymanic script 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 hasMixedActiveContent = true;
14 async function runTest()
16 await isSecurityState("secure");
17 window.setTimeout(function () {
18 let newElement = document.createElement("script");
19 newElement.src = "http://example.org/tests/security/manager/ssl/tests/" +
20 "mochitest/mixedcontent/bug329869.js";
21 document.body.appendChild(newElement);
22 }, 0);
25 async function afterNavigationTest()
27 await isSecurityState("secure", "when we navigate back, we're loading our secure page again and not loading an insecure script, so our security state is secure");
28 finish();
31 </script>
32 </head>
34 <body>
35 </body>
36 </html>