Adding UIA support for WebBrowser#7314
Conversation
0f28ee9 to
15873a3
Compare
|
To be honest I don't think we should be spending any time updating any of WebBrowser API.
|
|
Fixed tests: ControlAccessibleObject_GetPropertyValue_AccessKey_ReturnExpected |
15873a3 to
fc1ea12
Compare
I believe that everything works now. So can we keep this fix as it is already complete? |
vladimir-krestov
left a comment
There was a problem hiding this comment.
I don't see risk of implementing this fast fix, even if IE is outdated.
The main reason - #3037. We need to provide a correct accessibility tree for implemented apps, that can use WebBrowser.
@merriemcgaw, @Tanya-Solyanik, your thoughts?
| internal override object? GetPropertyValue(UiaCore.UIA propertyID) | ||
| => propertyID switch | ||
| { | ||
| UiaCore.UIA.AutomationIdPropertyId |
There was a problem hiding this comment.
If we're close I don't mind making sure apps with the WebBrowser control have the right UIA tree. But I wouldn't go spending time implementing too many patterns on this particular control.
There was a problem hiding this comment.
Just a friendly reminder to not lose this
There was a problem hiding this comment.
Just a friendly reminder to not lose this
Thank you! It will be done now )
src/System.Windows.Forms/src/System/Windows/Forms/WebBrowser.WebBrowserAccessibleObject.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/WebBrowser.WebBrowserAccessibleObject.cs
Outdated
Show resolved
Hide resolved
src/System.Windows.Forms/src/System/Windows/Forms/WebBrowser.cs
Outdated
Show resolved
Hide resolved
| return new WebBrowserSite(this); | ||
| } | ||
|
|
||
| protected override AccessibleObject CreateAccessibilityInstance() => new WebBrowserAccessibleObject(this); |
UIAProvider support for WebBrowser control and UnitTests
fc1ea12 to
686642b
Compare
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
CTI requested |
|
Tested this PR with no new issue found. |


Partially implements #3421
For .Net 7
Proposed changes
WebBrowserWinFormsApp.zip
Customer Impact
Screenshots
Before
ProviderDescription: "[pid:22832,providerId:0x402AA Main:Nested [pid:27400,providerId:0x402AA Main(parent link):Microsoft: MSAA Proxy (unmanaged:UIAutomationCore.dll)]; Hwnd(parent link):Microsoft: HWND Proxy (unmanaged:uiautomationcore.dll)]"
After
ProviderDescription: "[pid:25792,providerId:0x70BA2 Main:Nested [pid:30696,providerId:0x70BA2 Main(parent link):Unidentified Provider (unmanaged:coreclr.dll)]; Hwnd(parent link):Microsoft: HWND Proxy (unmanaged:uiautomationcore.dll)]"
Regression?
Risk
Test methodology
Accessibility testing
Test environment
dotnet : 7.0.0-preview.4.22229.4
Microsoft Reviewers: Open in CodeFlow