Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2466)

Unified Diff: chrome/test/data/password/password_form_in_crosssite_iframe.html

Issue 1159513002: Allow autofill in iframe inside page of same origin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove PasswordAutofillAgentTest.IframeNoFillTest Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..01f095e9fbdb0dd94056629c67400e2d74838cdb
--- /dev/null
+++ b/chrome/test/data/password/password_form_in_crosssite_iframe.html
@@ -0,0 +1,25 @@
+<html>
+<body id="inParent">
+
+<script>
+ function receiveMessage(event) {
+ window.domAutomationController.send(event.data);
+ }
+
+ function sendMessage(msg) {
+ document.getElementById("iframe").contentWindow.postMessage(msg,"*");
+ }
+
+ function create_iframe(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>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698