Closed Bug 460595 Opened 16 years ago Closed 16 years ago

Cannot drag text selection in input control

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9.1b2

People

(Reporter: elmar.ludwig, Assigned: asaf)

References

Details

(Keywords: fixed1.9.1, regression)

Attachments

(1 file)

Since the checkin of the patch for bug 459323, dragging a text selection from an input control (text area or text field) does no longer work. There is no drag cursor and dropping has no effect.

Steps to reproduce:

1. Select some text in some input control.
2. Try to drag the text with the mouse.

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b2pre) Gecko/20081018 Minefield/3.1b2pre
Flags: blocking1.9.1?
Attached patch patchSplinter Review
Assignee: nobody → mano
Status: NEW → ASSIGNED
Attachment #343752 - Flags: superreview?(jonas)
Attachment #343752 - Flags: review?(Olli.Pettay)
Priority: -- → P1
Target Milestone: --- → mozilla1.9.1b2
Severity: normal → major
OS: Linux → All
Hardware: PC → All
Asaf, could you explain this a bit.
Ah, nevermind. Bug 455215 explains this.
Comment on attachment 343752 [details] [diff] [review]
patch

I assume you have tested dragging from and to <input> and <textarea> etc.

Neil, can you think of any easy way to add tests for this all? We really really need such tests.

The patch looks ok, but I'd either like to have tests or some explanation why automatic testing isn't possible.
You can't automate testing of drag and drop code that relies on the dragservice or the native apis to be called (and succeed). You can test some aspects of the new drag and drop api with the methods in bug 456093.

The editor code still uses the old api though. Changing that is ultimately the right fix for a lot of the editor code, but that's a larger task.
Can we at least get all these d&d tests into litmus?
Flags: in-testsuite?
Flags: in-litmus?
Comment on attachment 343752 [details] [diff] [review]
patch

Ok, we need this. r=me if you add some tests after Enn's patch and make sure that this gets to litmus.
Attachment #343752 - Flags: review?(Olli.Pettay) → review+
Attachment #343752 - Flags: superreview?(jonas) → superreview+
http://hg.mozilla.org/mozilla-central/rev/757e0b46013a
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Bugs still remain.  Just filed: Bug 460903
Flags: blocking1.9.1? → blocking1.9.1+
Whiteboard: [needs 1.9.1 landing]
In the meantime, this needs to land on 191, pronto.
Beltzner, did you see the landing date?
Whiteboard: [needs 1.9.1 landing]
Ah, I see, this landed before we branched. Thanks, Mano. Marking fixed1.9.1.
Keywords: fixed1.9.1
Flags: in-testsuite?
Flags: in-litmus?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: