Bug 984299 - Use page visibility to close keyboard
Merge pull request #17270 from alivedise/bugzilla/984299_master/keyboard-close-itself-on-hidden

Bug 984299 - Use page visibility to close keyboard, r=rudy