Open Bug 677438 Opened 13 years ago Updated 1 month ago

double-clicking on a word and extending the selection back and forth removes the first word from the selection in specific cases


(Core :: DOM: Selection, defect)






(Reporter: vincent-moz, Unassigned)



(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 Iceweasel/5.0
Build ID: 20110730084237

Steps to reproduce:

I double-clicked on a word (holding the mouse button) and extended the selection to the right by moving the mouse pointer and releasing the mouse button.

Actual results:

The first word was not always selected. The last time this problem occurred, the space between the first and the second word was selected together the remaining of the selection rightwards (something that is particularly difficult to reproduce, as a selection made from a double-click normally starts on a word boundary).

I don't know how to reproduce this problem, but it occurred several times today. IIRC, it has never occurred with Firefox 3.x.

Expected results:

The first word should have been selected.
Mozilla/5.0 (X11; Linux x86_64; rv:8.0a1) Gecko/20110815 Firefox/8.0a1

Works for me on the latest nightly.

Could you give a repro. percentage of the issue? How many times does it reproduce in to say-about 10-tries?

Did it happen more often on specific websites?

Does the issue still occur if you start Firefox in Safe Mode?

How about with a new, empty profile?
I'm closing the bug as I can no longer reproduce it. I don't know whether something particular occurred on the system this day or there is something particular to do to reproduce it.
Closed: 13 years ago
Resolution: --- → WORKSFORME
Reopening as I've found a way to reproduce it with Iceweasel 10.0.2 (Debian), though not 100% of the time. For instance, on this page, in the bug description:
1. Double-click on "User" (in the line "User Agent: Mozilla/5.0 ..."), without releasing the mouse button.
2. Move the mouse pointer upward to "Vincent".
3. Move the mouse pointer downward back to "User". Most often, this has the effect to deselect "User", which is wrong!
4. Move the mouse pointer to the right: this selects words, and "User" is still unselected.
Resolution: WORKSFORME → ---
With Iceweasel 19.0.2 (Debian), I can reproduce the bug 100% of the time.
This still occurs with Firefox 52.5.0 (under Linux).
Summary: double-clicking on a word and extending the selection doesn't include the first word → double-clicking on a word and extending the selection back and forth removes the first word from the selection in specific cases
Attached file Testcase
Since Bugzilla has changed, Comment 3 is no longer valid. I've attached a testcase instead.

The bug is still reproducible with Nightly (61.0.1).
Severity: normal → S3

I can no longer reproduce this issue on the testcase with FF 123.0.1, and I think that I haven't seen it for quite a long time. FF 115.8.0esr also seems to be fine. So the bug may have been fixed, but this would need to be confirmed. Any idea?

You need to log in before you can comment on or make changes to this bug.