Bug 906080 - Assert main thread in isChromeOrXBL(). r=khuey

--HG--
extra : rebase_source : e3cebe6ad88ce7f418501365efdca2cf72dfff83
Bug 904810 - Restore old default behavior on Windows that UP/DOWN go to next/prev line also when there's a selection.  r=ehsan