`browser_bookmark_drag_splitview.js` fails when run twice: "srcDragSession is null"
Categories
(Firefox :: Bookmarks & History, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(1 external file)
In mochitest-browser-chrome repeat jobs (each test runs twice in the same browser), browser_bookmark_drag_splitview.js intermittently fails on its second run with TypeError: can't access property "endDragSession", srcDragSession is null, then leaves its tabs open.
EventUtils.synthesizeDragOver cancels dragstart, so the drag session fires no dragend, and the drop goes to the bookmarks toolbar rather than the tab strip. The tab strip therefore stays in drag-and-drop mode with its stale-drag check (bug 2061864) armed, and on the second run that check's mousedown listener ends the drag session the test just started.
The fix makes the test fire dragend at the dragged split view itself and asserts that the tab strip left drag-and-drop mode.
| Assignee | ||
Comment 1•13 days ago
|
||
Without a dragend the tab strip stays in drag-and-drop mode, and its
stale drag check ends the next drag session at the next mousedown, which
breaks this test when it runs again in the same browser.
Updated•9 days ago
|
Description
•