Skip to content

Add support of getting link destination of graphic links#14783

Merged
seanbudd merged 3 commits into
nvaccess:masterfrom
beqabeqa473:link_destination_in_graphic
Apr 5, 2023
Merged

Add support of getting link destination of graphic links#14783
seanbudd merged 3 commits into
nvaccess:masterfrom
beqabeqa473:link_destination_in_graphic

Conversation

@beqabeqa473

@beqabeqa473 beqabeqa473 commented Apr 4, 2023

Copy link
Copy Markdown
Contributor

Link to issue number:

Closes #14779

Summary of the issue:

destination of graphic links are not reported in chrome/edge

Description of user facing changes

Destination of graphic links now should be reported in chrome/edge browsers

Description of development approach

NVDA lands its focus to graphic elemeng "img" which does not have href value, but an element which is parent of that element is link.
So one more check was introduced to ensure han if we are focusing a graphic element and its parent is a link, we are now replacing an object by its parent object

Testing strategy:

Opened a webpage with graphic links and ensured that their addresses are correctly reported

Known issues with pull request:

None

Change log entries:

New features
Changes
Bug fixes
Destination of graphic links are now corectly reported in chrome and edge browsers
For Developers

Code Review Checklist:

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

@beqabeqa473 beqabeqa473 requested a review from a team as a code owner April 4, 2023 06:22
@beqabeqa473 beqabeqa473 requested a review from seanbudd April 4, 2023 06:22
@Adriani90

Copy link
Copy Markdown
Collaborator

Are image links also covered? See
https://www.rapidtables.com/web/html/link/html-image-link.html

@beqabeqa473

Copy link
Copy Markdown
Contributor Author

That was a purpose of creating this pr

@Adriani90

Copy link
Copy Markdown
Collaborator

Ah ok sorry I thought there might be a difference between grafic links and image links, didn't mean to spam this. :-)

Comment thread source/globalCommands.py Outdated
Comment thread source/globalCommands.py
@seanbudd

seanbudd commented Apr 4, 2023

Copy link
Copy Markdown
Member

Thanks @beqabeqa473 - just a minor fix required in regards to comments

@AppVeyorBot

Copy link
Copy Markdown

See test results for failed build of commit fbca680220

@beqabeqa473 beqabeqa473 force-pushed the link_destination_in_graphic branch from 1b109cf to 58079fb Compare April 5, 2023 10:03
@seanbudd seanbudd merged commit f92ee61 into nvaccess:master Apr 5, 2023
@nvaccessAuto nvaccessAuto added this to the 2023.2 milestone Apr 5, 2023
@amirsol81

Copy link
Copy Markdown

@beqabeqa473 @seanbudd I have Alpha 28043 for this graphic link-oriented fix, but it introduces one more serious issue.

  1. Go to https://www.gsmarena.com/
  2. Look for graphic links - many of them are there.
  3. Having located either of them, press the Down arrow once to move to its following heading which also contains the link in non-graphic form. For instance, the graphic link might be "Xiaomi Redmi Note 12 4G review." Press the Down arrow once to move to the heading which says: "link heading level 3 Xiaomi Redmi Note 12 Pro review."
  4. Press NVDA+K.
    NVDA incorrectly says: "Not a link." These are absolutely valid links which are now being ignored. This is with Chrome 112.

@beqabeqa473

Copy link
Copy Markdown
Contributor Author

It is not related for this pr and linked issue.
I still have earlier alpha on my machine and can reproduce bug you are talking

@amirsol81

amirsol81 commented Apr 6, 2023 via email

Copy link
Copy Markdown

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.

Chrome/Edge: NVDA unable to report the destination of various link types

6 participants