Closed Bug 2092272 Opened 13 days ago Closed 8 days ago

`browser_bookmark_drag_splitview.js` fails when run twice: "srcDragSession is null"

Categories

(Firefox :: Bookmarks & History, task, P3)

task

Tracking

()

RESOLVED FIXED
162 Branch
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.

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.

Blocks: 2092566
Severity: -- → N/A
Priority: -- → P3
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b819d558dbcb https://hg.mozilla.org/integration/autoland/rev/c8ef3372dd97 Fire dragend at the dragged split view in `browser_bookmark_drag_splitview.js`, r=places-reviewers,Standard8.
Status: ASSIGNED → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: