Android WebView control with TalkBack set to importantForAccessibility="noHideDescendants"
Reported by
g...@kochaniak.com,
May 5 2018
|
|||||
Issue descriptionSteps to reproduce the problem: 1. Create a very simple Android app with WebView control. In layout XML use android:importantForAccessibility="noHideDescendants" for your WebView control. Load some very simple text content into it. Activate TalkBack, start the debug build of the app. 2. Connect to the device or emulator from a desktop Chrome with chrome://inspect, see the content of the WebView. 3. Under head - script note that a bunch of JavaScript code was added by TalkBack despite setting the WebView as "not important for accessibility. Some of these scripts are also executed, waiting memory and processor cycles, battery. If long content is loaded into such WebView, it may take minutes to process, even though the result of this processing is never used. This makes app unresponsive for minutes at a time. What is the expected behavior? Do not load TalkBack JavaScripts and do not try to execute them, when android:importantForAccessibility="noHideDescendants" is used. This was the default behavior in Chrome 65 and older WebView versions. What went wrong? TalkBack JavaScript code loaded and executed without any need, causing the system hang for long minutes if text loaded into webview is long (say about 64 KB) Did this work before? N/A Does this work in other browsers? N/A Chrome version: 66.0.3359.126 Channel: stable OS Version: 4.1 - 8.1 Flash Version: n/a Can prepare a simple demo project, but the issue should be obvious to developers. This is a big problem for some apps that are popular among blind and visually disabled users, that need to load long chunks of text (e.g. ebook chapters etc.), and where alternative ways of navigating such text were developed. TalkBack unnecessary JavaScript processing of text causes long delays (several minutes on older phones) before TalkBack and the app become responsive.
,
May 7 2018
,
May 7 2018
greg@ -- Could you please confirm whether the issue can be closed as per your Comment #1. If not, request you to share the sample application which helps in reproducing the issue. Along with the screen cast and device details. This would help us in reproducing and triaging the issue further. Thanks in advance!
,
May 7 2018
The issue is there, but the reason I described (about loading and JavaScripts from TalkBack is wrong. Guess I should create a simple demo program to test it and submit a new issue instead. For now the only test case I know is my own app, @Voice Aloud Reader (com.hyperionics.avar in Google Play), particularly when run on older devices with arm-v7 processor. Using Chrome or WebView ver. 66 under TalkBack and loading long text makes app and TalkBack unresponsive for a long time. Downgrade WebView or Chrome to ver. 65 or lower and all works great.
,
May 7 2018
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 7 2018
greg@, thanks for providing more information, I'll just won't fix this one since the description is misleading. Please file another bug if you create a demo program to illustrate the issue, also please make sure to add Mobile>WebView components or cc me so it can be seen by us faster. Thanks!
,
May 8 2018
Thank you, submitted again with a very simple app example, complete source and built apk: https://bugs.chromium.org/p/chromium/issues/detail?id=840943&can=1&q=TalkBack&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified Greg |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by g...@kochaniak.com
, May 5 2018