Skip to content

Support HTML Figures in Chromium#16206

Merged
SaschaCowley merged 9 commits into
nvaccess:masterfrom
SaschaCowley:chromium_figures
Mar 13, 2024
Merged

Support HTML Figures in Chromium#16206
SaschaCowley merged 9 commits into
nvaccess:masterfrom
SaschaCowley:chromium_figures

Conversation

@SaschaCowley

@SaschaCowley SaschaCowley commented Feb 21, 2024

Copy link
Copy Markdown
Member

Link to issue number:

Fixes #16137

Summary of the issue:

Figures are currently not properly announced by NVDA in browse or focus modes in Chromium.

Description of user facing changes

Figures are now reported in Chrome.

Description of development approach

Since Chromium does not report a role of figure on <figure> elements unless the role has been added, add tests for a tag of figure on Chrome objects. Change figure searchable attributes to include the figure tag, since this is necessary to allow navigation by HTML figures in Chrome.

Testing strategy:

Manual tests with a test webpage.

Known issues with pull request:

  • Quick navigation by figure will land on <figure> elements whose role has been set to something other than figure.

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.

@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit a72df41a91

@seanbudd seanbudd added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Mar 4, 2024
@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit ae04cadee1

@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit 1fb40c1c47

@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit ee6178bbfd

@SaschaCowley SaschaCowley marked this pull request as ready for review March 6, 2024 07:03
@SaschaCowley SaschaCowley requested a review from a team as a code owner March 6, 2024 07:03

@seanbudd seanbudd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @SaschaCowley. As the testing field is unticked, can you confirm you've tested this?

Comment thread source/NVDAObjects/IAccessible/chromium.py Outdated
Comment thread source/NVDAObjects/IAccessible/chromium.py Outdated
Comment thread source/NVDAObjects/IAccessible/chromium.py Outdated
Comment thread source/NVDAObjects/IAccessible/chromium.py Outdated
Comment thread source/virtualBuffers/gecko_ia2.py Outdated
@SaschaCowley

Copy link
Copy Markdown
Member Author

Thanks @SaschaCowley. As the testing field is unticked, can you confirm you've tested this?

This has been manually tested. The initial PR comment has been updated to reflect this.

@SaschaCowley SaschaCowley merged commit 7f6734a into nvaccess:master Mar 13, 2024
@nvaccessAuto nvaccessAuto added this to the 2024.2 milestone Mar 13, 2024
Adriani90 pushed a commit to Adriani90/nvda that referenced this pull request Mar 13, 2024
Fixes nvaccess#16137

Summary of the issue:
Figures are currently not properly announced by NVDA in browse or focus modes in Chromium.

Description of user facing changes
Figures are now reported in Chrome.

Description of development approach:
Since Chromium does not report a role of figure on <figure> elements unless the role has been added, add tests for a tag of figure on Chrome objects. Change figure searchable attributes to include the figure tag, since this is necessary to allow navigation by HTML figures in Chrome.

Known issues:
Quick navigation by figure will land on <figure> elements whose role has been set to something other than figure.
@SaschaCowley SaschaCowley deleted the chromium_figures branch August 22, 2024 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HTML figures not properly supported in Chromium

4 participants