Open Bug 245480 Opened 18 years ago Updated 1 year ago

strange characters on page confuse text-selecting algorithm

Categories

(Core :: DOM: Selection, defect, P5)

x86
Windows XP
defect

Tracking

()

People

(Reporter: matus, Unassigned)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8

Selecting text on a line with strange characters (see Rreproducing below) with
mouse causes Firefox to start selecting not under the cursor but a few
characters to the right.

Reproducible: Always
Steps to Reproduce:
1. Go to http://bash.org/?browse&p=88
2. Find #10260 on the page
3. Try to select the text "I took my ps2 to florida" with mouse.

Actual Results:  
The text " my ps2 to florida, and " gets selected.

Expected Results:  
"I took my ps2 to florida" should have been selected.

No themes. TabBrowser Extensions installed. Windows XP Pro, English.
Confirmed at http://bash.org/?10260 with Mozilla/5.0 (Windows; U; Windows NT
5.1; en-US; rv:1.8a2) Gecko/20040601 Firefox/0.8.0+.

Also happens in Seamonkey, so -> Selection.
Assignee: firefox → selection
Status: UNCONFIRMED → NEW
Component: General → Selection
Ever confirmed: true
Product: Firefox → Browser
QA Contact: firefox.general
Version: unspecified → Trunk
Attached file testcase
short testcase with text from http://bash.org/?10260,
view-source:http://bash.org/?10260 also disturbed.
Have a look at the source of the testcase, some tags are overlapping the text.
Starnge characters are STX,ETX, SI, i.e. 0x02, 0x03, 0x0F.
Keywords: testcase
I believe (well, I'm quite sure) this is directly related to bug #248708,
'Problem with rendering & selection of "ignorable" characters...', and both of
these bugs are at least laterally related to bug/patch #205387, 'need to exclude
truly invisible default_ignorable_code_point's from draw_string.'

(Thanks to MartijnW for pointing out the connection.)

Both of the above are (ostensibly) Win32:GFX bugs, so you may want to
recategorise this bug -- just a suggestion, of course.
Assignee: selection → nobody
QA Contact: selection

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.