Closed Bug 2092259 Opened 13 days ago Closed 12 days ago

`browser_chat_shortcuts.js` leaves the native cursor over the copy button, failing a later hover check when repeated

Categories

(Core :: Machine Learning: Frontend, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

test_selection_callout_click_reaches_action in browser_chat_shortcuts.js clicks #copy-action-button with synthesizeNativeMouseEvent, which leaves the real cursor over the place where the copy button appears. On Windows, each later selection menu opens under that cursor and the OS hovers the copy button.

When the file runs twice in the same browser (mochitest-browser-chrome-repeat), test_selection_callout_link_opens_more_actions fails with "Hovering the link lights the three-dot button - timed out after 50 tries.": the OS mouse move arrives right after the test's synthesized hover on the callout link and unhovers it.

The fix moves the native cursor to the URL bar input after the click.

Otherwise, on Windows, test_selection_callout_link_opens_more_actions can lose
its synthesized hover on the callout link when the file runs a second time in
the same browser.

Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c185a546ab3d https://hg.mozilla.org/integration/autoland/rev/e080aea929f4 Move the native cursor away from the selection menu after the native click in browser_chat_shortcuts.js, r=mlucks.
Blocks: 2092566
Status: ASSIGNED → RESOLVED
Closed: 12 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: