Open Bug 1329658 Opened 7 years ago Updated 2 years ago

Selecting content using SHIFT+UP/DOWN is broken for content that contains form controls

Categories

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

defect

Tracking

()

Tracking Status
firefox53 --- affected

People

(Reporter: MatsPalmgren_bugz, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: testcase)

User Story

STEPS TO REPRODUCE
1. select a few "a" in the first word
2. type three SHIFT+DOWN
3. copy-paste the selection somewhere
4. click somewhere on the background of the page to "reset" the selection

ACTUAL RESULTS
Some c's at the end are selected, these are copied in step 3.
However, the a's you selected are still painted as selected although
they were never copied in 3 (they are in fact not part of the selection
anymore).  In step 4 the a's still appear selected.

There are many variations of the STR that are broken:
select some c's then type SHIFT+UP a few times
select some b's then type SHIFT+DOWN a few times
select some d's then type SHIFT+UP a few times

The general bug seems to be that when selecting over a form control (or anything
with native anonymous content), the current selection is lost when the caret
pass over it.

The underlying root cause is similar to bug 1328030.

Attachments

(1 file)

Depends on: 1328030
Attached file testcase
User Story: (updated)
Depends on: 1362873
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: