2 This page enables to simulate the following scenario:
3 Once a page body, but not the entire frame, is loaded, a
4 password form is dynamically created and added to the page
7 Three main points to note:
8 1. The form only gets created after the body loads. Therefore
9 the form is not registered during form parsing stage
10 (as in PasswordManager::OnPasswordFormsParsed).
11 2. The form gets created before the rendering stage, so it gets
12 registered during PasswordManager::OnPasswordFormsRendered.
13 3. The form gets created before the main frame loads. Therefore
14 the form is not registered during OnDynamicFormsSeen.
16 The goal is to make sure that there is enough time between the form
17 creation and the frame load, so that OnDynamicFormsSeen is not
18 triggered for the created form after frame load. To achieve that,
19 this page contains a strange stylesheet, distilled from a much bigger
20 stylesheet included in the current live.com website (that's where
21 http://crbug.com/367768 was demonstrated). The style uses
22 some webkit-only rules for background properties.
26 <script src=
"form_utils.js"></script>
28 function onLoadHandler() {
29 document
.body
.appendChild(createSimplePasswordForm());
34 background-color:#abc;
36 ::-webkit-scrollbar:disabled{
39 ::-webkit-scrollbar-button{
40 background-color:#abc;
41 background-image:url(nonexistent_image.png);
43 ::-webkit-scrollbar-button:hover{
46 ::-webkit-scrollbar-button:active{
49 ::-webkit-scrollbar-button:disabled{
53 <title>Test dynamically created password form
</title>
55 <body onload=
"onLoadHandler();">
56 This page is not empty.