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">
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);
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");