Bug 1936575 - PART 2: Do not trigger default browser prompt until ToS is accepted...
[gecko.git] / security / manager / ssl / tests / mochitest / mixedcontent / test_bug521461.html
blobfcb580d9f8dba61060644dbd45444a3b93f92754
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <title>Bug 521461</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";
11 SimpleTest.requestFlakyTimeout("Timeout in mixedContentTest");
13 loadAsInsecure = true;
15 async function runTest()
17 window.location = "https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/nocontent.sjs";
18 window.setTimeout(async () => {
19 await isSecurityState("insecure", "location.href doesn't effect the security state");
20 is(document.body.innerHTML, "This is an unsecure page!\n", "Document has not changed content");
21 finish();
22 }, 1000);
25 async function afterNavigationTest()
27 await isSecurityState("insecure", "still not secure after navigation");
28 is(document.body.innerHTML, "This is an unsecure page!\n", "Document has not changed content");
29 finish();
32 </script>
33 </head>
35 <body>This is an unsecure page!</body></html>