Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head> | |
| 3 <script type="text/javascript"> | |
| 4 window.onload = function() { | |
| 5 $('submit_separate').action = getLocationWithHttpSchemeSecuritySwapped(); | |
| 6 } | |
| 7 | |
| 8 function getLocationWithHttpSchemeSecuritySwapped() { | |
| 9 var protocol = ("http:" == window.location.protocol) ? "https://" : "http://"; | |
| 10 var url = protocol + window.location.pathname + "done_and_separate_login_form. html"; | |
|
vabr (Chromium)
2014/08/27 11:51:47
You should not need to add the filename, it should
vabr (Chromium)
2014/08/27 11:51:47
Did you forget to add window.location.host?
Pritam Nikam
2014/08/30 10:16:20
Done.
Pritam Nikam
2014/08/30 10:16:20
Done.
| |
| 11 return url; | |
| 12 } | |
| 13 </script> | |
| 14 </head> | |
| 15 <body> | |
| 16 Navigation complete. Below is the different login form pushed by server but with same action URL. | |
| 17 The URL schem may or may not be same. Moreover, browser shall not promp user to save incorrect password. | |
| 18 <form method="POST" id="to_separate"> | |
| 19 <input type="text" id="username_separate" name="username_separate"> | |
| 20 <input type="password" id="password_separate" name="password_separate"> | |
| 21 <input type="submit" id="submit_separate" name="submit_separate"> | |
| 22 </form> | |
| 23 </body> | |
| 24 </html> | |
| OLD | NEW |