Allow a range to be specified to scrollIntoView, use it in search addon

Issue #1870