Chromium Code Reviews
DescriptionSuppress Autofill popup if it would be outside the viewport.
This is not a problem for the usual autofill popup, since th focused field will move the viewport. However, it is relevant to the separate "Form Not Secure" popup that is shown for autofilled fields on HTTP pages at page load.
TEST=
1) Enable chrome://flags#enable-http-form-warning
2) Store a password on http://rsolomakhin.github.io/autofill/ under "Name/Password"
3) Reload the page with so that the password field and credit card field are both in the viewport. Verify that "Login Not Secure" appears (see just-inside-viewport-bottom.png at crbug.com/678713#c11)
4) Resize the browser so that the password field is below the viewport and reload. Verify that "Login Not Secure" does *not* (see just-outside-viewport-bottom.png at crbug.com/678713#c11)
BUG=678713
Patch Set 1 #
Total comments: 6
Patch Set 2 : Calculate using screen coordinates. #Patch Set 3 : Suppress Autofill popup if it would be outside the viewport. #Messages
Total messages: 8 (3 generated)
|