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

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

Issue 488083002: [Password Manager] Fix to recognise failed login attempt for sites where content server pushes new … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@branch_autofill_todo_20140813
Patch Set: Updated as per review comments. Created 6 years, 4 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/done_and_separate_login_form.html
diff --git a/chrome/test/data/password/done_and_separate_login_form.html b/chrome/test/data/password/done_and_separate_login_form.html
new file mode 100644
index 0000000000000000000000000000000000000000..800f5221ca60fcb2024b28c129b02c581257c1f2
--- /dev/null
+++ b/chrome/test/data/password/done_and_separate_login_form.html
@@ -0,0 +1,24 @@
+<html>
+<head>
+<script type="text/javascript">
+window.onload = function() {
+ document.getElementById('to_separate').action = getLocationWithHttpSchemeSecuritySwapped();
+}
+
+function getLocationWithHttpSchemeSecuritySwapped() {
+ var protocol = ("http:" == window.location.protocol) ? "https://" : "http://";
+ var url = protocol + window.location.host + window.location.pathname;
+ return url;
+}
+</script>
+</head>
+<body>
+Navigation complete. Below is the different login form pushed by server but with same action URL.
+The URL schem may or may not be same. Moreover, browser shall not promp user to save incorrect password.
+<form method="POST" id="to_separate">
+ <input type="text" id="username_separate" name="username_separate">
+ <input type="password" id="password_separate" name="password_separate">
+ <input type="submit" id="submit_separate" name="submit_separate">
+</form>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698