Bug Report: ConHost Caption BoundingRects dissapeared #3031

Open
opened 2026-01-30 23:11:15 +00:00 by claunia · 3 comments
Owner

Originally created by @carlos-zamora on GitHub (Jul 31, 2019).

Environment

Caused by Accessibility PR: 96496d8154

Steps to reproduce

  1. open ConHost
  2. open inspect.exe
  3. find caption buttons

Expected behavior

bounding rects should appear over caption buttons

Actual behavior

bounding rects aren't there. But it seems like you can interact with them perfectly fine otherwise.

Other notes

I think the main culprit here is WindowUiaProvider. Not entirely sure what caused it though.

Originally created by @carlos-zamora on GitHub (Jul 31, 2019). # Environment Caused by Accessibility PR: https://github.com/microsoft/terminal/commit/96496d8154113ae9e0bcbe47b4bbaf33a0d4e961 # Steps to reproduce 1. open ConHost 2. open inspect.exe 3. find caption buttons # Expected behavior bounding rects should appear over caption buttons # Actual behavior bounding rects aren't there. But it seems like you can interact with them perfectly fine otherwise. # Other notes I think the main culprit here is `WindowUiaProvider`. Not entirely sure what caused it though.
claunia added the Help WantedProduct-ConhostIssue-BugPriority-2Area-Accessibility labels 2026-01-30 23:11:15 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Mar 8, 2022):

Okay so presumably, this broke in 96496d8154, in #1691.

Then, we reverted nearly all that in #6417

ironically, the Terminal's version of this still works fine

@zadjii-msft commented on GitHub (Mar 8, 2022): Okay so presumably, this broke in https://github.com/microsoft/terminal/commit/96496d8154113ae9e0bcbe47b4bbaf33a0d4e961, in #1691. Then, we reverted nearly all that in #6417 ironically, the Terminal's version of this still works fine
Author
Owner

@zadjii-msft commented on GitHub (Mar 8, 2022):

after lunch: Look into WindowUiaProvider::get_HostRawElementProvider. That's my only lead.

@zadjii-msft commented on GitHub (Mar 8, 2022): after lunch: Look into `WindowUiaProvider::get_HostRawElementProvider`. That's my only lead.
Author
Owner

@zadjii-msft commented on GitHub (Mar 8, 2022):

Okay I found nothing here. What I did find was:

  • this works fine for conhostv1
  • this DOESN'T work for conhostv2
  • this DOESN'T work for explorer
  • this DOESN'T work for the rejuv'd notepad
  • this works fine for terminal's titlebar when not showing the tabs in the title bar.

Given that this works generally poorly across the OS, I'm gonna punt this. If this did work, that's cool, sorry we broke it. I don't have the UIA expertise needed to figure out how this regressed.

@zadjii-msft commented on GitHub (Mar 8, 2022): Okay I found nothing here. What I did find was: * this works fine for conhostv1 * this DOESN'T work for conhostv2 * this DOESN'T work for explorer * this DOESN'T work for the rejuv'd notepad * this works fine for terminal's titlebar when not showing the tabs in the title bar. Given that this works generally poorly across the OS, I'm gonna punt this. If this did work, that's cool, sorry we broke it. I don't have the UIA expertise needed to figure out how this regressed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3031