tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_secureAll.html (1242B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <title>All secure anti-regression check</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" />
      8 
      9  <link rel="stylesheet" type="text/css"
     10    href="https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/somestyle.css" />
     11 
     12  <script class="testbody" type="text/javascript">
     13  "use strict";
     14 
     15  // Navigation test goes over an insecure page, test state leak
     16  navigateToInsecure = true;
     17 
     18  async function runTest()
     19  {
     20    await isSecurityState("secure", "insecure <img> load breaks security");
     21    finish();
     22  }
     23 
     24  async function afterNavigationTest()
     25  {
     26    await isSecurityState("secure", "security still broken after navigation");
     27    finish();
     28  }
     29 
     30  </script>
     31 </head>
     32 
     33 <body>
     34  <img src="https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/moonsurface.jpg" />
     35  <img src="https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/imgsecredirect.sjs" />
     36  <iframe src="https://example.com/tests/security/manager/ssl/tests/mochitest/mixedcontent/iframesecredirect.sjs" />
     37 </body>
     38 </html>