Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / password / crossite_iframe_content.html
blobbb7ee8f1970ce5f425633ce0075f147037eac653
1 <html>
2 <head>
3 <meta charset="utf-8" />
4 <title>Title</title>
5 </head>
6 <body id="inframe">
7 <script>
8 function receiveMessage(event){
9 if (event.data == "fill_and_submit") {
10 document.getElementById("username").value = "temp";
11 document.getElementById("password").value = "pa55w0rd";
12 document.getElementById("submit_button").click();
13 } else if (event.data == "get_username") {
14 event.source.postMessage(document.getElementById("username").value,
15 event.origin);
16 } else if (event.data == "get_password") {
17 event.source.postMessage(document.getElementById("password").value,
18 event.origin);
21 window.addEventListener("message", receiveMessage, false);
23 </script>
24 <form method="POST" name="TestForm" action="/password/done.html">
25 <input type="text" id="username"/>
26 <input type="password" id="password"/>
27 <input type="submit" id="submit_button" value="Log"/>
28 </form>
29 </body>
30 </html>