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

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

Issue 2849653003: Password manager should autofill a dynamic form added and processed before the page was loaded. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 This page has a resource that takes a very long time to load. Nevetheless, a
3 hidden password form is created dynamically. It should be autofilled and
4 successful submission should be detected.
5 -->
6 <html>
7 <head>
8 <script src="form_utils.js"></script>
9 <script>
10 function addDynamicForm() {
11 var form = createSimplePasswordForm();
12 form.style.display = 'none';
13 document.body.appendChild(form);
14 }
15 document.addEventListener("DOMContentLoaded", function(event) {
16 // Add the form some time after the DOM was loaded. It means that the form
17 // won't be detected during DidFinishDocumentLoad() stage.
18 setTimeout(addDynamicForm);
19 });
20 </script>
21 <title>Test dynamically created password form</title>
22 </head>
23 <body>
24 <img src="/slow?100">
vabr (Chromium) 2017/04/28 19:17:33 Nice trick!
vasilii 2017/04/28 21:26:23 Acknowledged.
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698