Created attachment 548992 [details]
1. open a page
2. select a word
3. drag the left selection marker down
results: from the right marker to the bottom of the page is selected
expected: selection should stay in the bounds of the markers
Moving the left selection marker up seems to produce similar results.
I assume you saw this on http://www.wired.com/threatlevel/2011/07/mit-webcam-swartz/ ?
Ok, I can reproduce it on that url.
Created attachment 550510 [details] [diff] [review]
The problem here is the cache.end position is "client" aligned and did not have the scrollOffset adjusted. The solution was to make sure the cache positions (start and end) were _always_ "client" oriented and to make the scrollOffset adjust in a local variable just for the mouse event.
That seems to fix the bug for me.
I also fixed bug 676008 by adjusting the initial x, y by scrollOffset too.
Created attachment 550516 [details] [diff] [review]
Same as last but changed a selection.collaspeToStart() -? selection.removeAllRanges() to fix bug 675459 too.
Mozilla/5.0 (Android; Linux armv7l; rv:8.0a1) Gecko/20110805 Firefox/8.0a1 Fennec/8.0a1
This mobile-only patch makes some solid fixes to the text selection mechanism in Fx8 and we'd like to see it on Fx7 too.
Fixes are limited to only the 2 or 3 text selection methods. Low risk.
Comment on attachment 550516 [details] [diff] [review]
Get it landed this week, please