New issue
Advanced search Search tips

Issue 840116 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug



Sign in to add a comment

Android WebView control with TalkBack set to importantForAccessibility="noHideDescendants"

Reported by g...@kochaniak.com, May 5 2018

Issue description

Steps 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.
 

Comment 1 by g...@kochaniak.com, May 5 2018

Sorry, discard this issue. There is a problem with long processing under WebView control 66 as described above, but it's not related to JavaScript loaded. For now I cannot figure out what it is, except that the problem appeared in WebView 66 about 2 weeks ago.
Components: Mobile>WebView
Labels: Needs-triage-Mobile
Cc: pnangunoori@chromium.org
Labels: WV-Triaged Needs-Feedback
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!

Comment 4 by g...@kochaniak.com, 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.
Project Member

Comment 5 by sheriffbot@chromium.org, May 7 2018

Labels: -Needs-Feedback
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

Comment 6 by ctzsm@chromium.org, May 7 2018

Status: WontFix (was: Unconfirmed)
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!

Sign in to add a comment