Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ANE in the "ListViewSubItemAccessibleObjectin" constructor (#4744) (port to 5.0) #4764

Conversation

SergeySmirnov-Akvelon
Copy link
Contributor

@SergeySmirnov-Akvelon SergeySmirnov-Akvelon commented Apr 6, 2021

Fixes #4742

Proposed changes

  • Added missing logic for adding and removing owner. The problem is reproduced because when getting an accessibility object for a ListViewSubItem, the ListViewSubItem may not have an owner. This is because we have several ways to create and add an unowned ListViewSubItem to an ListViewItem.
  • Added/updated unit tests

Customer Impact

An app crash upon clicking on a listview subitem.

  • Before fix:
    Issue-4742-BeforeFix

  • After fix:
    Issue-4742-AfterFix

Regression?

  • Yes

Risk

  • Minimal

Test methodology

  • Unit tests

Test environment(s)

  • Microsoft Windows: Version 10.0.19041.388
  • .NET Core SDK: 5.0.100
Microsoft Reviewers: Open in CodeFlow
Microsoft Reviewers: Open in CodeFlow

…et#4744)

Added missing logic for adding and removing owner. The problem is reproduced because when getting an accessibility object for a ListViewSubItem, the ListViewSubItem may not have an owner. This is because we have several ways to create and add an unowned ListViewSubItem to an ListViewItem.

Added/updated unit tests
@RussKie RussKie added the Servicing-approved .NET Shiproom approved the PR for merge label Apr 6, 2021
@RussKie
Copy link
Member

RussKie commented Apr 6, 2021

Approved for servicing in #4744

@RussKie RussKie added this to the 5.0.6 milestone Apr 6, 2021
@codecov
Copy link

codecov bot commented Apr 6, 2021

Codecov Report

Merging #4764 (b04dc7c) into release/5.0 (b959d13) will increase coverage by 0.01331%.
The diff coverage is 100.00000%.

@@                  Coverage Diff                  @@
##           release/5.0       #4764         +/-   ##
=====================================================
+ Coverage     68.41685%   68.43016%   +0.01331%     
=====================================================
  Files             1421        1421                 
  Lines           510880      511051        +171     
  Branches         41586       41587          +1     
=====================================================
+ Hits            349528      349713        +185     
+ Misses          154927      154916         -11     
+ Partials          6425        6422          -3     
Flag Coverage Δ
Debug 68.43016% <100.00000%> (+0.01331%) ⬆️
production 37.87837% <100.00000%> (+0.00755%) ⬆️
test 97.91329% <100.00000%> (+0.00131%) ⬆️

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

@dreddy-work dreddy-work merged commit cbfbaab into dotnet:release/5.0 Apr 7, 2021
@SergeySmirnov-Akvelon SergeySmirnov-Akvelon deleted the Issue_4742_ListViewSubItemAccessibleObject__ctor_ANE_5.0 branch August 17, 2021 09:39
@ghost ghost locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Servicing-approved .NET Shiproom approved the PR for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject ctor ArgumentNullException
3 participants