Closed
      
        Bug 674791
      
      
        Opened 14 years ago
          Closed 14 years ago
      
        
    
  
dragging the left text selection marker down selects to the bottom of the page
Categories
(Firefox for Android Graveyard :: General, defect, P3)
Tracking
(firefox7 fixed, firefox8 fixed)
        VERIFIED
        FIXED
        
    
  
        
            Firefox 7
        
    
  
People
(Reporter: kbrosnan, Assigned: mfinkle)
References
()
Details
Attachments
(2 files, 1 obsolete file)
| 59.93 KB,
          image/png         | Details | |
| 7.20 KB,
          patch         | wesj
:
              
              review+ johnath
:
              
              approval-mozilla-aurora+ | Details | Diff | Splinter Review | 
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
|   | Reporter | |
| Comment 1•14 years ago
           | ||
Moving the left selection marker up seems to produce similar results.
| Comment 2•14 years ago
           | ||
I assume you saw this on http://www.wired.com/threatlevel/2011/07/mit-webcam-swartz/ ?
|   | Reporter | |
| Updated•14 years ago
           | 
OS: Windows 7 → Android
Priority: -- → P3
Hardware: x86 → ARM
| Assignee | ||
| Comment 4•14 years ago
           | ||
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.
Assignee: nobody → mark.finkle
        Attachment #550510 -
        Flags: review?(wjohnston)
| Assignee | ||
| Comment 5•14 years ago
           | ||
Same as last but changed a selection.collaspeToStart() -? selection.removeAllRanges() to fix bug 675459 too.
        Attachment #550510 -
        Attachment is obsolete: true
        Attachment #550510 -
        Flags: review?(wjohnston)
        Attachment #550516 -
        Flags: review?(wjohnston)
| Updated•14 years ago
           | 
        Attachment #550516 -
        Flags: review?(wjohnston) → review+
| Assignee | ||
| Comment 6•14 years ago
           | ||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
| Comment 7•14 years ago
           | ||
Verified Fixed
Mozilla/5.0 (Android; Linux armv7l; rv:8.0a1) Gecko/20110805 Firefox/8.0a1 Fennec/8.0a1
Status: RESOLVED → VERIFIED
| Assignee | ||
| Updated•14 years ago
           | 
        Attachment #550516 -
        Flags: approval-mozilla-aurora?
| Assignee | ||
| Comment 8•14 years ago
           | ||
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 9•14 years ago
           | ||
Comment on attachment 550516 [details] [diff] [review]
patch 2
Get it landed this week, please
        Attachment #550516 -
        Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
| Comment 10•14 years ago
           | ||
          You need to log in
          before you can comment on or make changes to this bug.
        
 screenshot
 screenshot
            
Description
•