mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf8">
|
|
<title>Bug 762593 - Add warning/error Message to Web Console when the
|
|
page includes Insecure Password fields</title>
|
|
<!-- Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ -->
|
|
|
|
<!-- This test tests the scenario where a javascript adds password fields to
|
|
an about:blank iframe inside an insecure web page. It ensures that
|
|
insecure password fields like those are detected and a warning is sent to
|
|
the web console. -->
|
|
</head>
|
|
<body>
|
|
<p>This insecure page is served with an about:blank iframe. A script then adds a
|
|
password field to it.</p>
|
|
<iframe id = "myiframe" width = "300" height="300" >
|
|
</iframe>
|
|
<script>
|
|
var doc = window.document;
|
|
var myIframe = doc.getElementById("myiframe");
|
|
myIframe.contentDocument.open();
|
|
myIframe.contentDocument.write("<form><input type = 'password' name='pwd' value='test'> </form>");
|
|
myIframe.contentDocument.close();
|
|
</script>
|
|
</body>
|
|
</html>
|