Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / password / between_parsing_and_rendering.html
blobf7bb3e3949e5b16e6d5d505afed6972868923c91
1 <!--
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
5 body.
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.
23 -->
24 <html>
25 <head>
26 <script src="form_utils.js"></script>
27 <script>
28 function onLoadHandler() {
29 document.body.appendChild(createSimplePasswordForm());
31 </script>
32 <style>
33 ::-webkit-scrollbar{
34 background-color:#abc;
36 ::-webkit-scrollbar:disabled{
37 background-color:#abc
39 ::-webkit-scrollbar-button{
40 background-color:#abc;
41 background-image:url(nonexistent_image.png);
43 ::-webkit-scrollbar-button:hover{
44 background-color:#abc
46 ::-webkit-scrollbar-button:active{
47 background-color:#abc
49 ::-webkit-scrollbar-button:disabled{
50 background-color:#abc
52 </style>
53 <title>Test dynamically created password form</title>
54 </head>
55 <body onload="onLoadHandler();">
56 This page is not empty.
57 </body>
58 </html>