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: Add ContentsView to AXChildren #22399

Merged
merged 1 commit into from Mar 2, 2020
Merged

fix: Add ContentsView to AXChildren #22399

merged 1 commit into from Mar 2, 2020

Conversation

felixrieseberg
Copy link
Member

Description of Change

The native window on macOS has only three elements in its AXChildren: The close, maximize, and minimize button. In practice, that means that a VoiceOver user won't be able to navigate from the window into the web contents, therefore unable to interact with anything that's actually happening in the window.

In this PR, I'm manually editing the AXChildren array and adding the ContentsView back in. I have to admit that I have little experience with accessibility work in Cocoa, but I believe that it fixes the issue. I also have no idea how we could write a test for this, but I'm open to ideas!

Closes #17207

Before

Screen Shot 2020-02-26 at 11 41 57 AM

After

Screen Shot 2020-02-26 at 11 40 36 AM

Checklist

Release Notes

Notes: macOS VoiceOver is now able to find its way back into web contents after it navigated "out" of an application.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 26, 2020
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine to me, cc @zcbenz for second opinion.

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 28, 2020
Copy link
Member

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@zcbenz zcbenz merged commit cad7054 into master Mar 2, 2020
@release-clerk
Copy link

release-clerk bot commented Mar 2, 2020

Release Notes Persisted

macOS VoiceOver is now able to find its way back into web contents after it navigated "out" of an application.

@trop
Copy link
Contributor

trop bot commented Mar 2, 2020

I have automatically backported this PR to "9-x-y", please check out #22469

@trop trop bot removed the target/9-x-y label Mar 2, 2020
@trop
Copy link
Contributor

trop bot commented Mar 2, 2020

I have automatically backported this PR to "8-x-y", please check out #22470

faultyserver added a commit to discord/electron that referenced this pull request Apr 8, 2020
faultyserver added a commit to discord/electron that referenced this pull request Apr 8, 2020
adill pushed a commit to discord/electron that referenced this pull request Apr 11, 2020
@deepak1556
Copy link
Member

/trop run backport-to 7-2-x

@trop
Copy link
Contributor

trop bot commented Apr 20, 2020

The backport process for this PR has been manually initiated -
sending your commits to "7-2-x"!

@trop
Copy link
Contributor

trop bot commented Apr 20, 2020

I have automatically backported this PR to "7-2-x", please check out #23174

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.

Accessibility: VoiceOver Can't Find Web Content If you Stop Interact
4 participants