Skip to content

Harden recording consent dialog accessibility - #397

Closed
shanselman with Copilot wants to merge 3 commits into
masterfrom
copilot/deep-reviewc12-fix-recording-consent-dialog
Closed

shanselman with Copilot wants to merge 3 commits into
masterfrom
copilot/deep-reviewc12-fix-recording-consent-dialog

Conversation

Copilot AI commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

RecordingConsentDialog gates screen and camera recording consent but behaved like a sibling WindowEx, with weak assistive-tech modality and unreliable safe-default focus.

  • Dialog accessibility

    • Added explicit automation names for Allow and Deny.
    • Marked the dialog content as an assertive live region.
    • Focuses Deny on load/activation as the safe default.
  • Owner modality

    • Passes an owner HWND from the tray app into the consent dialog.
    • Sets the dialog’s HWND parent and disables the owner while consent is pending.
    • Re-enables the owner when the dialog closes.
  • Coverage

    • Added focused tests covering automation labels, live setting, Deny focus, and owner wiring.
AutomationProperties.SetName(denyButton, LocalizationHelper.GetString("RecordingConsent_Deny"));
AutomationProperties.SetName(allowButton, LocalizationHelper.GetString("RecordingConsent_Allow"));
AutomationProperties.SetLiveSetting(root, AutomationLiveSetting.Assertive);

_ownerDisabled = EnableWindow(_ownerHwnd, false);
SetWindowLongPtr(hwnd, GWLP_HWNDPARENT, _ownerHwnd);

Copilot AI changed the title [WIP] Fix recording consent dialog to improve accessibility Harden recording consent dialog accessibility May 14, 2026
Copilot AI requested a review from shanselman May 14, 2026 21:37
@shanselman

Copy link
Copy Markdown
Collaborator

Closing this automation implementation as stale/superseded after the post-refactor triage. The underlying signal is preserved in #353 and the tracker update in #372: recording consent accessibility remains open pending verification, but this draft is stale.

@shanselman shanselman closed this May 18, 2026
@shanselman
shanselman deleted the copilot/deep-reviewc12-fix-recording-consent-dialog branch September 7, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[deep-review] C12: RecordingConsentDialog is a WindowEx, not a ContentDialog — fails assistive tech

2 participants