Open Bug 1777061 Opened 4 years ago Updated 8 days ago

Intermittent editor/libeditor/tests/test_dragdrop.html | single tracking bug

Categories

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

defect

Tracking

()

REOPENED

People

(Reporter: jmaher, Unassigned)

References

Details

(Keywords: intermittent-failure, intermittent-testcase, Whiteboard: [retriggered])

Attachments

(1 obsolete file)

No description provided.

Additional information about this bug failures and frequency patterns can be found by running: ./mach test-info failure-report --bug 1777061

Most failures are failing to synthesize dragstart when it starts dragging from <input> or <textarea>.

When fails, the log shows as:

INFO - synthesizePlainDragAndDrop() -- START
INFO - srcElement.getBoundingClientRect(): left: 8, top: 12, right: 182.3333282470703, bottom: 34
INFO - srcSelection.getRangeAt(0).getClientRects()[0]: left: 39.73333740234375, top: 15, right: 72.28334045410156, bottom: 31
INFO - "mousedown" event is fired on [object HTMLInputElement] (composedTarget: [object HTMLInputElement]
INFO - mousedown at 48, 11
INFO - first mousemove at 57, 20
INFO - second mousemove at 66, 29
INFO - synthesizePlainDragAndDrop() -- END
INFO - Buffered messages finished
INFO - TEST-UNEXPECTED-FAIL | editor/libeditor/tests/test_dragdrop.html | dragging text in <input> to other <input> (canceling "deleteByDrag"): Failed to emulate drag and drop ("dragstart" event is not fired) 

When succeeds, the log shows as:

INFO - synthesizePlainDragAndDrop() -- START
INFO - srcElement.getBoundingClientRect(): left: 8, top: 12, right: 182.3333282470703, bottom: 34
INFO - srcSelection.getRangeAt(0).getClientRects()[0]: left: 39.73333740234375, top: 15, right: 72.28334045410156, bottom: 31
INFO - "mousedown" event is fired on [object HTMLInputElement] (composedTarget: [object HTMLInputElement]
INFO - mousedown at 48, 11
INFO - "dragstart" event is fired
INFO - first mousemove at 57, 20
INFO - second mousemove at 66, 29

So, the flushing layout works as expected...

It seems that when synthesizing the mouse down, the selection has gone. If so, it's caused by the confusion of <input> and <textarea> at first focus or initialization.

Attachment #9381533 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 1 year ago7 months ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: