browser/devtools/webconsole/test/test-bug-762593-insecure-passwords-about-blank-web-console-warning.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/webconsole/test/test-bug-762593-insecure-passwords-about-blank-web-console-warning.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +<!doctype html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <meta charset="utf8">
     1.8 +    <title>Bug 762593 - Add warning/error Message to Web Console when the
     1.9 +      page includes Insecure Password fields</title>
    1.10 +    <!-- Any copyright is dedicated to the Public Domain.
    1.11 +    http://creativecommons.org/publicdomain/zero/1.0/ -->
    1.12 +
    1.13 +    <!-- This test tests the scenario where a javascript adds password fields to
    1.14 +     an about:blank iframe inside an insecure web page. It ensures that
    1.15 +     insecure password fields like those are detected and a warning is sent to
    1.16 +     the web console. -->
    1.17 +  </head>
    1.18 +  <body>
    1.19 +    <p>This insecure page is served with an about:blank iframe. A script then adds a
    1.20 +    password field to it.</p>
    1.21 +    <iframe id = "myiframe" width = "300" height="300" >
    1.22 +    </iframe>
    1.23 +    <script>
    1.24 +      var doc = window.document;
    1.25 +      var myIframe = doc.getElementById("myiframe");
    1.26 +      myIframe.contentDocument.open();
    1.27 +      myIframe.contentDocument.write("<form><input type = 'password' name='pwd' value='test'> </form>");
    1.28 +      myIframe.contentDocument.close();
    1.29 +    </script>
    1.30 +  </body>
    1.31 +</html>

mercurial