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

Side by Side Diff: chrome/test/data/password/password_xhr_submit.html

Issue 1039833002: [Password Manager] Unify action and origin detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <base href="http://test.com/">
4
3 <script> 5 <script>
4 6
5 var navigate = true; 7 var navigate = true;
6 8
7 // TODO(gcasto): Not sure why this is necessary, but calling 9 // TODO(gcasto): Not sure why this is necessary, but calling
8 // window.domAutomationController directly in setTimeout seemt to causes the 10 // window.domAutomationController directly in setTimeout seemt to causes the
9 // function to be evaluated inline. 11 // function to be evaluated inline.
10 function delayedUpload() { 12 function delayedUpload() {
11 window.domAutomationController.send("XHR_FINISHED"); 13 window.domAutomationController.send("XHR_FINISHED");
12 } 14 }
(...skipping 18 matching lines...) Expand all
31 function send_xhr() { 33 function send_xhr() {
32 var xhr = new XMLHttpRequest(); 34 var xhr = new XMLHttpRequest();
33 xhr.onreadystatechange = function() { state_changed(xhr); }; 35 xhr.onreadystatechange = function() { state_changed(xhr); };
34 xhr.open("GET", "password_xhr_submit.html", true); 36 xhr.open("GET", "password_xhr_submit.html", true);
35 xhr.send(null); 37 xhr.send(null);
36 } 38 }
37 39
38 </script> 40 </script>
39 </head> 41 </head>
40 <body> 42 <body>
41 <form action="password_xhr_submit.html" onsubmit="send_xhr(); return false;" 43 <form onsubmit="send_xhr(); return false;"
42 id="testform"> 44 id="testform">
43 <input type="text" id="username_field" name="username_field"> 45 <input type="text" id="username_field" name="username_field">
44 <input type="password" id="password_field" name="password_field"> 46 <input type="password" id="password_field" name="password_field">
45 <input type="submit" id="submit_button" name="submit_button"> 47 <input type="submit" id="submit_button" name="submit_button">
46 </form> 48 </form>
47 49
48 <form action="password_xhr_submit.html" onsubmit="send_xhr(); return false;" 50 <form action="password_xhr_submit.html" onsubmit="send_xhr(); return false;"
49 id="signup_testform"> 51 id="signup_testform">
50 <input type="text" id="signup_username_field" name="signup_username_field"> 52 <input type="text" id="signup_username_field" name="signup_username_field">
51 <input type="password" id="signup_password_field" 53 <input type="password" id="signup_password_field"
52 name="signup_password_field" autocomplete="new-password"> 54 name="signup_password_field" autocomplete="new-password">
53 <input type="password" id="confirmation_password_field" 55 <input type="password" id="confirmation_password_field"
54 name="confirmation_password_field" autocomplete="new-password"> 56 name="confirmation_password_field" autocomplete="new-password">
55 <input type="submit" id="signup_submit_button" name="signup_submit_button"> 57 <input type="submit" id="signup_submit_button" name="signup_submit_button">
56 </form> 58 </form>
57 </body> 59 </body>
58 </html> 60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698