4 <title>unsecure XHR 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 hasMixedActiveContent = true;
14 async function runTest()
16 await isSecurityState(
"secure");
17 window.setTimeout(async () =
> {
19 let req = new XMLHttpRequest();
20 req.open(
"GET",
"http://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/alloworigin.sjs", false);
23 // Change should be immediate, the request was sent synchronously
24 await isSecurityState(
"broken",
"security broken after insecure XHR");
33 async function afterNavigationTest()
35 await isSecurityState(
"secure",
"security full after navigation");