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

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

Issue 1012093005: [Password Manager] Offer to save when an iframe is detached (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change upstream Created 5 years, 9 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/frame_detached_on_submit.html
diff --git a/chrome/test/data/password/frame_detached_on_submit.html b/chrome/test/data/password/frame_detached_on_submit.html
new file mode 100644
index 0000000000000000000000000000000000000000..8536c360e4fb6e524d72d70c1fad51390b1c59be
--- /dev/null
+++ b/chrome/test/data/password/frame_detached_on_submit.html
@@ -0,0 +1,26 @@
+<html>
+<body>
+
+<script>
+
+function delayedUpload() {
+ window.domAutomationController.send("SUBMISSION_FINISHED");
+}
+
+function receiveMessage(event) {
+ var login_iframe = document.getElementById('login_iframe');
+ login_iframe.parentNode.removeChild(login_iframe);
+ window.domAutomationController.setAutomationId(0);
+ setTimeout(delayedUpload, 0);
+}
+
+window.addEventListener("message", receiveMessage, false);
+
+</script>
+
+<iframe src="inner_frame.html" id="login_iframe" name="login_iframe">
+</iframe>
+
+
+</body>
+</html>
« no previous file with comments | « chrome/browser/password_manager/password_manager_browsertest.cc ('k') | chrome/test/data/password/inner_frame.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698