Skip to content

Limit magnifier max recovery attempts to 1 - #20897

Merged
seanbudd merged 2 commits into
betafrom
limitMaxRecov
Sep 29, 2026
Merged

seanbudd merged 2 commits into
betafrom
limitMaxRecov

Conversation

@seanbudd

@seanbudd seanbudd commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

Link to issue number:

Partial fix for #20860

Summary of the issue:

The magnifier recovery may cause unsafe flickering against the 3 flashes rule: https://www.w3.org/WAI/WCAG22/Understanding/three-flashes.html

Description of user facing changes:

magnifier now attempts to recover only once instead of three times.
this limits the rare case where recovery was possible.

Description of developer facing changes:

none

Description of development approach:

limit the max recovery attempts to 1

Testing strategy:

attempted STR from #20860

Known issues with pull request:

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@seanbudd seanbudd added this to the 2026.3 milestone Sep 29, 2026
@seanbudd
seanbudd marked this pull request as ready for review September 29, 2026 03:03
@seanbudd
seanbudd requested a review from a team as a code owner September 29, 2026 03:03
Copilot stopped work on behalf of seanbudd due to an error September 29, 2026 05:31
@seanbudd
seanbudd enabled auto-merge (squash) September 29, 2026 07:30
@seanbudd
seanbudd disabled auto-merge September 29, 2026 07:32
@seanbudd
seanbudd merged commit abca4fa into beta Sep 29, 2026
88 of 91 checks passed
@seanbudd
seanbudd deleted the limitMaxRecov branch September 29, 2026 07:32
@CyrilleB79

Copy link
Copy Markdown
Collaborator

@seanbudd, the description of this PR is not correct:
Indeed in "Description of user facing changes:" section you write:

magnifier no longer attempts to recover, instead we go straight to the failure message.
this prevents the rare case where recovery was possible.

Actually with this PR, magnifier still tries to recover, but only once instead of 3 times. This can be seen when executing the STR of #20860; now:

  • mag deactivates itself
  • about 1/2 sec later it reactivates itself
  • about !!!!!!!!!!!!1/2 sec later, it deactivates itself, definitively this time.

Can you update it for clarity? E.g.:

magnifier now attempts to recover only once instead of three times.
this limits the rare case where recovery was possible.

Even with this description, the 3 flashes rule is still honoured, since there is only one flash. So there is no problem per se with this PR.

@seanbudd

seanbudd commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

good catch - fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants