Closed Bug 382105 Opened 18 years ago Closed 18 years ago

Double click selection extends beyond punctuation with new textframe

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: RyanVM, Assigned: roc)

References

Details

Attachments

(2 files)

On builds with the new textframe enabled, double clicking text (say the "mozilla" in mozilla.org in the location bar) results in "mozilla." being selected instead of "mozilla".
Flags: blocking1.9?
Flags: blocking1.9? → blocking1.9+
This WFM now.
Filed bug 383542 for other text selection weirdness with the new textframe.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Flags: in-testsuite?
I'll reopen this, I still can see those issues on OS X. example: in comment 0, selecting by double-click the last instance of "mozilla" selects the word, the closing " and the period. 2007060704 build with new textframe.
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I checked in a fix for this.
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Still seeing this with a win32 trunk build with the new textframe enabled today.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
What are the settings of your layout.word_select.* prefs?
layout.word_select.eat_space_to_next_word = true layout.word_select.stop_at_punctuation = true
OK, I checked in ANOTHER fix. Should really be fixed this time :-)
Status: REOPENED → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Or not, I'm afraid. Attached is a screenshot of what I'm seeing now if I double click the word mozilla in the location.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: nobody → roc
Status: REOPENED → NEW
Also, on Linux, double-clicking mozilla leads to the period on both sides to be selected (".mozilla.").
OS: Windows XP → All
Hardware: PC → All
Even more strange: if I double-click past the end of the URL, everything *but* the last section becomes selected. This used to be a convenient way to copy a bug number ;) This also happens with a simple testcase: data:text/html,<input value="a b c">
Attached patch fixSplinter Review
1) simplify the code a bit more 2) don't check *aSawBeforeType when we're looking for punctuation 3) exit early without changing *aOffset when there's no clusters in the direction we're looking
Attachment #269163 - Flags: review?(smontagu)
Attachment #269163 - Flags: review?(smontagu) → review+
checked in.
Status: NEW → RESOLVED
Closed: 18 years ago18 years ago
Resolution: --- → FIXED
Nice :)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: