Chromium Code Reviews| Index: chrome/test/data/password/password_form_in_crosssite_iframe.html |
| diff --git a/chrome/test/data/password/password_form_in_crosssite_iframe.html b/chrome/test/data/password/password_form_in_crosssite_iframe.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..311d941426bbc58bfaa56ff8c1270c82f0ebdf06 |
| --- /dev/null |
| +++ b/chrome/test/data/password/password_form_in_crosssite_iframe.html |
| @@ -0,0 +1,34 @@ |
| +<html> |
| +<body id="inParent"> |
| + |
| +<script> |
| + function receiveMessage(event) { |
| + window.domAutomationController.send(event.data); |
| + } |
| + |
| + function sendMessage(msg) { |
| + document.getElementById("iframe").contentWindow.postMessage( |
| + msg, |
| + "*"); |
| + } |
| + |
| + function createCrossSiteIframe(src) { |
| + var ifrm = document.createElement("IFRAME"); |
| + ifrm.setAttribute("id", "iframe"); |
| + ifrm.setAttribute("name", "iframe"); |
| + ifrm.setAttribute("src", src); |
| + document.body.appendChild(ifrm); |
| + } |
| + |
| + window.addEventListener("message", receiveMessage, false); |
| +</script> |
| + |
| + |
| +<!-- |
| +<iframe src="http://randomsite.net/index.html" id="iframe" name="iframe"> |
|
Garrett Casto
2015/05/26 20:31:38
Did you keep this around for a reason or is it jus
|
| +</iframe> |
| +--> |
| + |
| + |
| +</body> |
| +</html> |