-
Notifications
You must be signed in to change notification settings - Fork 975
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
Adding UIA support for WebBrowser #7314
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove, it will be implemented in #7206
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a friendly reminder to not lose this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
@@ -1130,6 +1132,8 @@ protected override WebBrowserSiteBase CreateWebBrowserSiteBase() | |||
return new WebBrowserSite(this); | |||
} | |||
|
|||
protected override AccessibleObject CreateAccessibilityInstance() => new WebBrowserAccessibleObject(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
UIAProvider support for WebBrowser control and UnitTests
fc1ea12
to
686642b
Compare
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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