PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/zpao/v8monkey
HTML | 33 lines | 28 code | 5 blank | 0 comment | 0 complexity | e2472e0ff7478c43ad35155c7f78cae9 MD5 | raw file
 1<!DOCTYPE HTML>
 2<html>
 3<head>
 4  <title>Unsecure iframe load</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 <iframe> 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  <iframe src="https://example.com/tests/security/ssl/mixedcontent/iframe2.html"></iframe>
32</body>
33</html>