Skip to content

Correct EnumVariantObject definition (servicing)#4209

Merged
RussKie merged 1 commit into
dotnet:release/5.0from
RussKie:fix_4121_CheckedListBox_AccessibilityTree
Nov 20, 2020
Merged

Correct EnumVariantObject definition (servicing)#4209
RussKie merged 1 commit into
dotnet:release/5.0from
RussKie:fix_4121_CheckedListBox_AccessibilityTree

Conversation

@RussKie
Copy link
Copy Markdown
Contributor

@RussKie RussKie commented Nov 11, 2020

(cherry picked from commit 5af42bf)

Fixes #4120 (LinkLabel accessiblity tree)
Fixes #4121 (CheckedListBox accessiblity tree)
Fixes #4130 (MSAA UpDown controls)
Fixes #4172 (MSAA CheckedListBox)

Regression from 0c4d3cb

Proposed changes

  • Cast currentChild from uint to int before using in Marshal.GetNativeVariantForObject

Customer Impact

  • A user can see a correct accessibility tree for controls that don't support the UIA provider using Inspect tool

Regression?

Risk

  • Minimal

Screenshots

Before

  • CheckedListBox doesn't have internal items AccessibleObjects in the accessibility tree
    image

After

  • CheckedListBox has the correct accessibility tree with the internal items
    image

Test methodology

  • Manual testing
  • CTI

Accessibility testing

  • Using Inspect tool

Test environment(s)

  • .Net Version: 6.0.0-alpha.1.20513.9
  • Microsoft Windows [Version 10.0.19042.572]
Microsoft Reviewers: Open in CodeFlow
Microsoft Reviewers: Open in CodeFlow

…ect method in EnumVariantObject

for EnumVariantObject

The fix allows users to see the correct accessibility tree of controls that don't support UIA using Inspect tool
Fixes dotnet#4120 (LinkLabel accessiblity tree)
Fixes dotnet#4121 (CheckedListBox accessiblity tree)
The regression from 0c4d3cb

(cherry picked from commit 5af42bf)
@RussKie RussKie added the servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria label Nov 11, 2020
@RussKie RussKie added this to the 5.0.1 milestone Nov 11, 2020
@RussKie RussKie requested a review from a team as a code owner November 11, 2020 01:15
@ghost ghost assigned RussKie Nov 11, 2020
@RussKie RussKie changed the title Correct EnumVariantObject definition Correct EnumVariantObject definition (servicing) Nov 11, 2020
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 11, 2020

Codecov Report

Merging #4209 (4c77af6) into release/5.0 (61c7831) will decrease coverage by 0.00157%.
The diff coverage is 0.00000%.

@@                  Coverage Diff                  @@
##           release/5.0       #4209         +/-   ##
=====================================================
- Coverage     68.04802%   68.04645%   -0.00158%     
=====================================================
  Files             1419        1419                 
  Lines           509765      509765                 
  Branches         41478       41478                 
=====================================================
- Hits            346885      346877          -8     
- Misses          156646      156653          +7     
- Partials          6234        6235          +1     
Flag Coverage Δ
Debug 68.04645% <0.00000%> (-0.00158%) ⬇️
production 37.10323% <0.00000%> (-0.00318%) ⬇️
test 98.06679% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@RussKie
Copy link
Copy Markdown
Contributor Author

RussKie commented Nov 11, 2020

@vladimir-krestov could you do a quick sanity check to confirm all is good? Thanks

@vladimir-krestov
Copy link
Copy Markdown
Contributor

Confirm, ❌ the previous commit (61c7831) doesn't work for:

  • CheckedListBox in UIA and MSAA modes
  • NumericUpDown and DomainUpDown in MSAA mode
  • LinkLabel in UIA mode

After applying the fix (checkout your branch) all of them work correctly now. ✔️

@RussKie RussKie added a11y-MAS High Priority - Accessibility violation of Microsoft Accessibility Standards tenet-accessibility MAS violation, UIA issue; problems with accessibility standards labels Nov 11, 2020
@leecow leecow added servicing-approved .NET Shiproom approved the PR for merge and removed servicing-consider .NET Shiproom label indicating a PR seeks to enter into a branch under Tell-Mode criteria labels Nov 17, 2020
@RussKie RussKie merged commit 4b398b9 into dotnet:release/5.0 Nov 20, 2020
@RussKie RussKie deleted the fix_4121_CheckedListBox_AccessibilityTree branch November 20, 2020 10:14
@ghost ghost locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a11y-MAS High Priority - Accessibility violation of Microsoft Accessibility Standards servicing-approved .NET Shiproom approved the PR for merge tenet-accessibility MAS violation, UIA issue; problems with accessibility standards

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants