tor-browser

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

test-insecure-passwords-about-blank-web-console-warning.html (1107B)


      1 <!doctype html>
      2 <html>
      3  <head>
      4    <meta charset="utf8">
      5    <title>Bug 762593 - Add warning/error Message to Web Console when the
      6      page includes Insecure Password fields</title>
      7    <!-- Any copyright is dedicated to the Public Domain.
      8    http://creativecommons.org/publicdomain/zero/1.0/ -->
      9 
     10    <!-- This test tests the scenario where a javascript adds password fields to
     11     an about:blank iframe inside an insecure web page. It ensures that
     12     insecure password fields like those are detected and a warning is sent to
     13     the web console. -->
     14  </head>
     15  <body>
     16    <p>This insecure page is served with an about:blank iframe. A script then adds a
     17    password field to it.</p>
     18    <iframe id = "myiframe" width = "300" height="300" >
     19    </iframe>
     20    <script>
     21      /* eslint-disable */
     22      var doc = window.document;
     23      var myIframe = doc.getElementById("myiframe");
     24      myIframe.contentDocument.open();
     25      myIframe.contentDocument.write("<form><input type = 'password' name='pwd' value='test'> </form>");
     26      myIframe.contentDocument.close();
     27    </script>
     28  </body>
     29 </html>