Bug 957332 - setting caret offset doesn't always clear visual selection, r=tbsaunde