Bug 941367 - Fix JavaScript assertions in dom/inputmethod/forms.js caused by trying to get the selection of non-text controls. r=fabrice

--HG--
extra : rebase_source : eb9b497bb81e165bac9c128b888e2ddbfcb1b02f
Bug 939396 - Fix <input type=range> so that the focus code doesn't overwrite the correct pre-focus value onclick. r=smaug

--HG--
extra : rebase_source : 095f67af802d9b63e7eda93e33d580c8d0286b9c