Closed
Bug 292581
Opened 20 years ago
Closed 19 years ago
funky selection behaviour 3
Categories
(Core :: DOM: Selection, defect)
Tracking
()
RESOLVED
WORKSFORME
mozilla1.8beta4
People
(Reporter: bugs.caleb, Assigned: sharparrow1)
References
()
Details
Attachments
(5 files, 1 obsolete file)
|
2.79 KB,
text/html
|
Details | |
|
1.50 KB,
text/html
|
Details | |
|
2.60 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
benjamin
:
approval1.8b4+
|
Details | Diff | Splinter Review |
|
803 bytes,
text/html
|
Details | |
|
2.34 KB,
patch
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050501 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050501 Firefox/1.0+ This one is hopefully the last selection bug i stumble onto. The behaviour is kinda similar to bug 289792, but a bit less extreme. Reproduction: 1. Open the specified URL 2. Look at the first post by 'ratboy2000' 3. Start selecting his post text from the bottom (starting from the 'Guess I'll wait.' line) and upwards. When your mouse pointer reaches a few milimeters above the first line of his post the selection kinda inverts/jumps back. You can also try moving your mouse when that happens and notice that the selection moves in a place different than the one the mouse is pointing to. I tried making a testcase, without any success, any help would be appreciated! Reproducible: Always Steps to Reproduce:
didn't search for duplicates yet, but I can confirm this bug on FF 20050502. Attaching an ultimately (hoping not too ultimately :) ) reduced testcase. It seems that the combination of the <H2> tag and the <div style="float:left;"> for the main text triggers this bug. To reproduce : 1. open the attached testcase 2. reduce browser window height (in order for the verical scrollbar to appear) 3. Try to select the entirety of the main text from an arbitrary line. E.g. starting from the first line and moving downwards until you hit the status area. Result: When the cursor hits the status area of the browser window, it starts scrolling (as expected) BUT the selected text changes to something on the left or top of the initial selection starting point.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•20 years ago
|
||
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050419 Firefox/1.0.4 Happens here, I scroll down and the selection flips and then back and flips again, rather odd, just like described. Adding clean-report based on what Dimitrios said. Also, I wouldn't know what to dupe this too, so not even gonna try.
Keywords: clean-report
Comment 4•20 years ago
|
||
table in a float:left div, reduced, but not minimized.
Requesting blocking since this bug makes it difficult to select text in some circumstances.
Flags: blocking1.8b3?
Flags: blocking-aviary1.1?
I'm not 100% this is related, but here's another page that has really poor selection behaviour: http://www.allmusic.com/cg/amg.dll?p=amg&searchlink=FOUR|FRESHMEN&uid=MIW060505271437&sql=11:7x6fmpb39f5o~T2 Try to select "The Four Freshmen" while dragging the mouse from right to left and moving it across the center of the letters.. the selection will suddenly move to the "wrong person? more matches HERE" link. Although if you hold your mouse really high (practicly above the text) the selection won't screw up. I'll try to get a minimized testcase sometime soon, but this makes selecting very annoying.
Updated•20 years ago
|
Whiteboard: DUPEME
Updated•19 years ago
|
Flags: blocking-aviary1.1?
| Assignee | ||
Comment 7•19 years ago
|
||
This is definitely a regression from Firefox 1.0, although I have no idea when it regressed.
Comment 8•19 years ago
|
||
Eli, can you look through the builds at archive.mozilla.org and try to determine when this regressed? that would help us a lot.
| Assignee | ||
Comment 9•19 years ago
|
||
This regressed between the April 14 and April 15 builds. Looking at Bonsai, it seems most likely this was regressed by Bug 289792 (how ironic).
| Assignee | ||
Comment 10•19 years ago
|
||
I edited this patch because I have other changes in my tree, so it might not apply cleanly.
| Assignee | ||
Updated•19 years ago
|
Attachment #190089 -
Flags: review?(bzbarsky)
Comment 11•19 years ago
|
||
So why does that patch work?
| Assignee | ||
Comment 12•19 years ago
|
||
The problem was that event coordinates were not being translated at the right time. The previous code was passing coordinates relative to the frame's view instead of relative to the frame's parent view. Therefore, the frame was misinterpreting the coordinates it recieved. This is all really wacky, and I think I'm going to make this use frame coordinates sometime in the 1.9 cycle.
Attachment #189853 -
Attachment is obsolete: true
Comment 13•19 years ago
|
||
Comment on attachment 190089 [details] [diff] [review] Patch v1 r+sr=bzbarsky. I hate GetOffsetFromView...
Attachment #190089 -
Flags: superreview+
Attachment #190089 -
Flags: review?(bzbarsky)
Attachment #190089 -
Flags: review+
| Assignee | ||
Updated•19 years ago
|
Attachment #190089 -
Flags: approval1.8b4?
Updated•19 years ago
|
Attachment #190089 -
Flags: approval1.8b4? → approval1.8b4+
Assignee: selection → sharparrow1
Whiteboard: DUPEME → [checkin needed]
| Reporter | ||
Comment 14•19 years ago
|
||
I've tested this patch, it works well (thank Eli!).
Comment 15•19 years ago
|
||
Checking in nsFrame.cpp; /cvsroot/mozilla/layout/generic/nsFrame.cpp,v <-- nsFrame.cpp new revision: 3.570; previous revision: 3.569 done
Status: NEW → RESOLVED
Closed: 19 years ago
Flags: blocking1.8b4?
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: --- → mozilla1.8beta4
| Assignee | ||
Updated•19 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 16•19 years ago
|
||
Could someone back out this patch?
Comment 17•19 years ago
|
||
I can back it out... but why? Care to explain?
Comment 18•19 years ago
|
||
Ah, nevermind, someone on stephend was kind enough to point out bug 302804. I backed it out. Checking in nsFrame.cpp; /cvsroot/mozilla/layout/generic/nsFrame.cpp,v <-- nsFrame.cpp new revision: 3.574; previous revision: 3.573 done
| Reporter | ||
Comment 19•19 years ago
|
||
This was fixed by bug 296036.
Status: REOPENED → RESOLVED
Closed: 19 years ago → 19 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•