Skip to content

Report deleted/inserted content in Chrome#8558

Merged
michaelDCurran merged 6 commits into
masterfrom
insDelInChrome
Jul 27, 2018
Merged

Report deleted/inserted content in Chrome#8558
michaelDCurran merged 6 commits into
masterfrom
insDelInChrome

Conversation

@michaelDCurran

Copy link
Copy Markdown
Member

Link to issue number:

None.

Summary of the issue:

Web authors are able to mark particular content as being inserted or deleted with ins and del tags respectively.
The IAccessible2 spec has been updated to include roles for ins and del, and Chrome Canary now exposes these roles. NVDA should add its own roles for these, mapped from the IAccessible2 roles.

Description of how this pull request fixes the issue:

  • NVDA now has deleted_content and inserted_content roles.
  • These are appropriately reported in focus mode and browseMode.
  • The new IAccessible2 content_deletion and content_insertion roles are mapped to the added NVDA roles, thus making this information accessible in Google Chrome.
  • Braille also has shortened role labels of "ins" and "del".

Testing performed:

Tested
marked text.html.txt
containing ins / del tags in Google Chrome Canary.
NVDA reports "inserted" and "deleted" for the ins and del tags respectively.

Known issues with pull request:

None.

Change log entry:

New features:

  • In Google Chrome, the existance of inserted and deleted content is now reported.

…ssible2 roles. Adding reporting of inserted and deleted content in Chrome.
@LeonarddeR

Copy link
Copy Markdown
Collaborator

Have you considered consistency here? We now have two separate insertion/deletion implementations, one based on control field attributes (Word and UIA) and one based on roles (IA2). It would be great if we could choose one of them, but I assume that introduces othher issues??

Comment thread source/controlTypes.py Outdated
@@ -486,6 +488,10 @@
ROLE_CHARTELEMENT:_("chart element"),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could you also move this one below role_audio?

@michaelDCurran

michaelDCurran commented Jul 26, 2018 via email

Copy link
Copy Markdown
Member Author

@Brian1Gaff

Brian1Gaff commented Jul 26, 2018 via email

Copy link
Copy Markdown

LeonarddeR
LeonarddeR previously approved these changes Jul 27, 2018
Comment thread source/textInfos/__init__.py Outdated

if (
role in (controlTypes.ROLE_LINK, controlTypes.ROLE_HEADING, controlTypes.ROLE_BUTTON, controlTypes.ROLE_RADIOBUTTON, controlTypes.ROLE_CHECKBOX, controlTypes.ROLE_GRAPHIC, controlTypes.ROLE_CHART, controlTypes.ROLE_MENUITEM, controlTypes.ROLE_TAB, controlTypes.ROLE_COMBOBOX, controlTypes.ROLE_SLIDER, controlTypes.ROLE_SPINBUTTON, controlTypes.ROLE_COMBOBOX, controlTypes.ROLE_PROGRESSBAR, controlTypes.ROLE_TOGGLEBUTTON, controlTypes.ROLE_MENUBUTTON, controlTypes.ROLE_TREEVIEW, controlTypes.ROLE_CHECKMENUITEM, controlTypes.ROLE_RADIOMENUITEM)
role in (controlTypes.ROLE_DELETED_CONTENT,controlTypes.ROLE_INSERTED_CONTENT,controlTypes.ROLE_LINK, controlTypes.ROLE_HEADING, controlTypes.ROLE_BUTTON, controlTypes.ROLE_RADIOBUTTON, controlTypes.ROLE_CHECKBOX, controlTypes.ROLE_GRAPHIC, controlTypes.ROLE_CHART, controlTypes.ROLE_MENUITEM, controlTypes.ROLE_TAB, controlTypes.ROLE_COMBOBOX, controlTypes.ROLE_SLIDER, controlTypes.ROLE_SPINBUTTON, controlTypes.ROLE_COMBOBOX, controlTypes.ROLE_PROGRESSBAR, controlTypes.ROLE_TOGGLEBUTTON, controlTypes.ROLE_MENUBUTTON, controlTypes.ROLE_TREEVIEW, controlTypes.ROLE_CHECKMENUITEM, controlTypes.ROLE_RADIOMENUITEM)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could you split this into multiple lines?

@michaelDCurran michaelDCurran merged commit b46b83e into master Jul 27, 2018
@nvaccessAuto nvaccessAuto added this to the 2018.3 milestone Jul 27, 2018
@jcsteh

jcsteh commented Jul 30, 2018

Copy link
Copy Markdown
Contributor

I'm doing this for Firefox in Mozilla bug 903187. I just tested the patch and it works as expected with NVDA, so it should be in Firefox Nightly in the next day or so (for release in Firefox 63).

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.

5 participants