Closed Bug 2092327 Opened 14 days ago Closed 12 days ago

Autocomplete popup keeps a stale mousedOverIndex after it is closed

Categories

(Toolkit :: UI Widgets, defect)

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(1 external file)

MozAutocompleteRichlistboxPopup.mousedOverIndex is reset only by the richlistbox's mousemove/mouseout handlers and by onSearchBegin(). Form fill never calls the popup's onSearchBegin() (nsFormFillController::OnSearchBegin is a no-op), and the popuphiding handler doesn't reset it. So after a row is hovered and the popup is closed, the next time the popup opens it still reports that row as moused over.

This makes toolkit/components/satchel/test/browser/browser_popup_mouseover.js fail on its second run in the same browser (mousedOverIndex should be -1 - 1 == -1). That is why the test carries a verify-standalone skip-if, and it fails on every platform in the upcoming mochitest-repeat jobs.

The fix resets mousedOverIndex in the popuphiding handler and removes the skip-if.

Only the mousemove/mouseout handlers and onSearchBegin reset it, and form fill
never calls onSearchBegin, so a reopened popup still reported the row hovered
the last time it was open. This broke browser_popup_mouseover.js when run twice
in the same browser, the reason for its verify-standalone annotation (bug 1995208).

Blocks: 2092566
Pushed by fqueze@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9c8fdce380df https://hg.mozilla.org/integration/autoland/rev/c28ac2cd733d Reset the autocomplete popup's mousedOverIndex when it hides, r=credential-management-reviewers,reusable-components-reviewers,akulyk,mtigley.
Status: ASSIGNED → RESOLVED
Closed: 12 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
QA Whiteboard: [qa-triage-done-c163/b162]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: