4 <title>innerHTML changes to unsecure test
</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">
11 SimpleTest.requestFlakyTimeout(
"Timeout in mixedContentTest");
13 async function runTest()
15 await isSecurityState(
"secure");
17 window.setTimeout(function () {
18 document.getElementById(
"buddy").innerHTML =
19 "<img id='image1' src='http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg' />";
22 waitForSecurityState(
"broken", async () =
> {
23 await isSecurityState(
"broken",
"innerHTML loading insecure changed to broken");
28 async function afterNavigationTest()
30 is(document.getElementById(
"buddy").innerHTML,
"\n",
"innerHTML back to previous");
31 await isSecurityState(
"secure");
38 <body id=
"buddy"></body></html>