Open Bug 1570761 Opened 5 years ago Updated 2 years ago

Duplicate caret-moved events resulting from find-in-page search in Nightly

Categories

(Core :: Disability Access APIs, defect, P3)

defect

Tracking

()

People

(Reporter: jdiggs, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file find-in-page.py

Steps to reproduce:

  1. Load the attached accessible-event listener in a terminal
  2. View: data:text/html,<div>Orca is a whale. Orca is also a screen reader.</div>
  3. Press Ctrl+F, type "orca"
  4. 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:

  1. 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. :)
  2. 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

Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: