Fixed issue #4390 for FF

Fixed issue #4390 for FF.
Test case input is updated to cover FF fix.

CLA as Alex Savchuk is signed.

P.S.: i'd fix it at bot.dom.getInViewLocation in comparison of coords before and after scrolling
but i'm not sure it doesn't broke something at another point.