PageRenderTime 19ms CodeModel.GetById 10ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/zpao/v8monkey
HTML | 41 lines | 34 code | 7 blank | 0 comment | 0 complexity | f215b1b70bf01cb56a10717856e5625a MD5 | raw file
 1<!DOCTYPE HTML>
 2<html>
 3<head>
 4  <title>All secure anti-regression check</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  <link rel="stylesheet" type="text/css" 
14    href="https://example.com/tests/security/ssl/mixedcontent/somestyle.css" />
15
16  <script class="testbody" type="text/javascript">
17
18  // Navigation test goes over an insecure page, test state leak
19  navigateToInsecure = true;
20
21  function runTest()
22  {
23    isSecurityState("secure", "insecure <img> load breaks security");
24    finish();
25  }
26
27  function afterNavigationTest()
28  {
29    isSecurityState("secure", "security still broken after navigation");
30    finish();
31  }
32
33  </script>
34</head>
35
36<body>
37  <img src="https://example.com/tests/security/ssl/mixedcontent/moonsurface.jpg" />
38  <img src="https://example.com/tests/security/ssl/mixedcontent/imgsecredirect.sjs" />
39  <iframe src="https://example.com/tests/security/ssl/mixedcontent/iframesecredirect.sjs" />
40</body>
41</html>