4 <title>img.src 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">
12 async function runTest()
14 await isSecurityState(
"secure");
15 window.setTimeout(function() {
16 // Don't do this synchronously from onload handler
17 document.getElementById(
"image1").src =
18 "http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg";
21 waitForSecurityState(
"broken", async () =
>
23 await isSecurityState(
"broken",
"src='http://...' changed to broken");
28 async function afterNavigationTest()
30 is(document.getElementById(
"image1").src,
31 "https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg",
32 "img.src secure again");
33 await isSecurityState(
"secure",
"security full after navigation");
41 <img id=
"image1" src=
"https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg" />