r24499 <http://trac.webkit.org/projects/webkit/changeset/24499> re-introduced behavior to select the nearest word when right-clicking. However, this behavior can often be very confusing. For example: 1. Go to http://webkit.org/ 2. Resize the window so that you can see to the right of the Download button 3. Right-click to the right of the Download button The word "The" in the heading of the page ("The WebKit Open Source Project") gets selected. This is very far away from the mouse. You can also end up with only whitespace getting selected, e.g. if you click just to the right of the sentence "If you have more questions, contact us."
<rdar://problem/5354455>
Happens on double-click too. It's probably the positionForPoint is buggy in that open space.
*** Bug 14739 has been marked as a duplicate of this bug. ***
I'm going to turn off word selection for non-editable content unless the mouse is over text.
Fixed in r24561.