Bug 956943 - Replace Editor.extendSelection with CM version. r=vporof