Open
Bug 514286
Opened 16 years ago
Updated 5 years ago
When restoring deleted selection with Undo, "polarity" of selection isn't preserved
Categories
(Core :: DOM: Selection, defect, P5)
Tracking
()
NEW
People
(Reporter: dholbert, Unassigned)
Details
STEPS TO REPRODUCE:
1. Type "abcd" into a text box
2. Position your cursor to the right of "c".
3. Hold shift, and press the leftarrow key twice
--> Now "bc" should be highlighted
4. Press your "delete" or "backspace" key to kill the highlighted text.
5. Use "Undo" (Ctrl-Z) to resurrect the text
--> Now we look just like after Step 3 -- "bc" is highlighted
6. Hold shift, and press leftarrow once more.
EXPECTED RESULTS:
"abc" should be highlighted. (The selection should extend one unit leftwards, continuing from where we left off.)
ACTUAL RESULTS:
"b" is the only thing highlighted. (The selection is shrunk from the right edge.)
Here's another way of phrasing this bug: When we restore a deleted selection via "Undo", we don't preserve the "polarity" of the selection. (By polarity, I mean "which side of the selection will be modified by pressing shift+arrowkeys") Instead, we simply force the "selecting-forward" polarity.
I can reproduce this in mozilla-central nightlies, as well as in Firefox 3.0.13:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.3a1pre) Gecko/20090901 Minefield/3.7a1pre
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.13) Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13
Comment 1•5 years ago
|
||
Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.
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.
Description
•