[821657] Scroll to input when focus

https://bugzilla.mozilla.org/show_bug.cgi?id=821657

Cherry picking from master as original bug was tef+