Comment 1 for bug 1383501

Revision history for this message
Olivier Tilloy (osomon) wrote : Re: Sugested text from username field is copied into password field (Twitter)

We’ve done a bit of investigation on this one together with Alberto and Michael, and while we didn’t get to the bottom of it, it seems that what happens is the following:

 - this specific twitter login page implements placeholder text for the input fields in a custom manner, where it overlays a <span> element containing the placeholder text on top of the input box
 - when switching focus from the username field to the password field by tapping on the password field’s placeholder, the password field briefly gets focus and it seems the current preedit in the username field is being committed (to the password field), and almost instantly it looses focus, resulting in the OSK being dismissed
 - the above doesn’t happen if focus is switched to the password field by tapping somewhere outside the placeholder text