Autocomplete popup keeps a stale mousedOverIndex after it is closed
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
| 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.
| Assignee | ||
Comment 1•14 days ago
|
||
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).
Comment 3•12 days ago
|
||
| bugherder | ||
Updated•1 hour ago
|
Description
•