Bug 1094009 - Follow text selection pattern

https://bugzilla.mozilla.org/show_bug.cgi?id=1094009