Duplicate caret-moved events resulting from find-in-page search in Nightly
Categories
(Core :: Disability Access APIs, defect, P3)
Tracking
()
People
(Reporter: jdiggs, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
1.06 KB,
text/x-python
|
Details |
Steps to reproduce:
- Load the attached accessible-event listener in a terminal
- View: data:text/html,<div>Orca is a whale. Orca is also a screen reader.</div>
- Press Ctrl+F, type "orca"
- Press return repeatedly to bounce between the Orca in the first sentence (result 1 of 2) and the Orca in the second sentence (result 2 of 2)
Expected results: There would only be one caret-moved event each time Return is pressed because the caret only moved once.
Actual results: There are two caret-moved events. In between the first one and the second one the label on the toolbar which shows the results (e.g. "1 of 2 matches") updates.
Notes:
- Because Orca (master) now presents the results count after the match, it would be nice if the event which went away were the one being emitted before the label update. :)
- The double-event happens in Nightly only. In Firefox stable, there is only one event (good). BUT it is emitted before the label update. As a result, Orca presents stale information about which result is current. (bad)
Sample output from performing the steps to reproduce:
Comment: Pressed Return once to move from the second result to the first.
Caret moved to offset: 4. Text: 'Orca is a whale. Orca is also a screen reader.'
2 of 2 matches
Caret moved to offset: 4. Text: 'Orca is a whale. Orca is also a screen reader.'
1 of 2 matches
Comment: Pressed Return once to move from the first result to the second.
Caret moved to offset: 21. Text: 'Orca is a whale. Orca is also a screen reader.'
1 of 2 matches
Caret moved to offset: 21. Text: 'Orca is a whale. Orca is also a screen reader.'
2 of 2 matches
Updated•6 years ago
|
Updated•3 years ago
|
Description
•