Index: chrome/test/data/password/infinite_password_form.html |
diff --git a/chrome/test/data/password/infinite_password_form.html b/chrome/test/data/password/infinite_password_form.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..70be5af9031981473522099dac0cfd76b68b9d8b |
--- /dev/null |
+++ b/chrome/test/data/password/infinite_password_form.html |
@@ -0,0 +1,26 @@ |
+<!-- |
+This page has a resource that takes a very long time to load. Nevetheless, a |
+hidden password form is created dynamically. It should be autofilled and |
+successful submission should be detected. |
+--> |
+<html> |
+ <head> |
+ <script src="form_utils.js"></script> |
+ <script> |
+function addDynamicForm() { |
+ var form = createSimplePasswordForm(); |
+ form.style.display = 'none'; |
+ document.body.appendChild(form); |
+} |
+document.addEventListener("DOMContentLoaded", function(event) { |
+ // Add the form some time after the DOM was loaded. It means that the form |
+ // won't be detected during DidFinishDocumentLoad() stage. |
+ setTimeout(addDynamicForm); |
+}); |
+ </script> |
+ <title>Test dynamically created password form</title> |
+ </head> |
+ <body> |
+ <img src="/slow?100"> |
vabr (Chromium)
2017/04/28 19:17:33
Nice trick!
vasilii
2017/04/28 21:26:23
Acknowledged.
|
+ </body> |
+</html> |