PageRenderTime 25ms CodeModel.GetById 16ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/security/manager/ssl/tests/mochitest/mixedcontent/test_unsecureRedirect.html

http://github.com/zpao/v8monkey
HTML | 33 lines | 28 code | 5 blank | 0 comment | 0 complexity | 9300c64cdcf1f2e5df2722d2d6801a32 MD5 | raw file
 1<!DOCTYPE HTML>
 2<html>
 3<head>
 4  <title>Redirect from secure to unsecure img</title>
 5  <script type="text/javascript" src="/MochiKit/Base.js"></script>
 6  <script type="text/javascript" src="/MochiKit/DOM.js"></script>
 7  <script type="text/javascript" src="/MochiKit/Style.js"></script>
 8  <script type="text/javascript" src="/MochiKit/Signal.js"></script>
 9  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10  <script type="text/javascript" src="mixedContentTest.js"></script>
11  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
12
13  <script class="testbody" type="text/javascript">
14
15  function runTest()
16  {
17    isSecurityState("broken", "insecure <img> load breaks security");
18    finish();
19  }
20
21  function afterNavigationTest()
22  {
23    isSecurityState("broken", "security still broken after navigation");
24    finish();
25  }
26
27  </script>
28</head>
29
30<body>
31  <img src="https://example.com/tests/security/ssl/mixedcontent/imgunsecredirect.sjs" />
32</body>
33</html>