-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Electron enables accessibility mode all the time with touch monitors (100% CPU usage in "Other") #7208
Comments
|
Another interesting fact:When using Electron v 1.3.6 and adding the following at the bottom of
I get |
ping @paulcbetts It looks like on my machine Electron immediately (on startup) goes into accessibility mode. Possible commit that first appeared in 0.37.6: c474ad0 |
Better repro steps -
|
fyi found this comment in some unrelated project. I have a touch monitor. http://hg.openjdk.java.net/openjfx/8u/rt/rev/059dc6af444f
|
@alexandrudima Seems legit, send in a PR |
This seems to be what @paulcbetts reported with #4001 a while ago. |
Some more information -- https://cs.chromium.org/chromium/src/content/browser/accessibility/browser_accessibility_state_impl.h?q=WM_GETOBJECT&sq=package:chromium&dr=C&l=25
|
@alexandrudima impressive analysis of the problem! |
@paulcbetts Is Because it seems to do what Electron wants to do with
I don't fully understand what parts of Chromium make it into Electron and how all the switches are set at runtime. Is there a way to find out if this class is alive/running in Electron without needing to compile Chromium locally? Should Electron do something similar (i.e. From my compiling Electron locally I can cofirm it receives quite some number (10 maybe) of @zcbenz @paulcbetts I really do not like slowness and would like with your help to put together a PR, but in what direction should I go? I would also be very happy if you are able to fix this. Should I "duplicate" the smarts of |
@alexandrudima Anything under the tbh, I'd try the Java approach first, it seems far easier than dealing with this WM_GETOBJECT canary - maybe it Just Works? |
I've tried this:
with a detection code like this:
Seems to work fine with Narrator, JAWS and NVDA for which it has detection. However, it won't work with other accessibility tools. |
I am also going the try the Java approach. |
Btw I am also experiencing this issue in Windows 10 running in Parallels on Mac |
Create a
main.js
file that loads a wikipedia page:electron.exe main.js
Electron v1.3.6 (process.versions.chrome = 52.0.2743.82)
Chromium version 52.0.2743.0
Chrome version 53.0.2785.113 m (64-bit)
Electron version 0.37.6 (process.versions.chrome = 49.0.2623.75)
More info:
Hints:
fyi @zcbenz @kevinsawicki @bpasero @dbaeumer
The text was updated successfully, but these errors were encountered: