disable onContentReady for non-primary conversations

The 'webkitAnimationStart' DOM event listener we use to signal page
readiness on JB+ seems to cause a JWebCoreJavaBridge timer pulse every
25ms for the non-primary non-visible conversations. This pulse also
persists beyond Activity.onPause (unlike GIF drawing).

To work around this, don't use onContentReady for the non-visible
conversations, even on JB+. Fall back to the onPageFinished listener
instead.

Hook up WebView.onPause/onResume listeners just in case. I was not able
to find any practical situation where these calls stopped timers, but it
probably doesn't hurt to put the calls in.

Bug: 3368262
Change-Id: Iaedc020c99c3127b77b8612b373ce21ce0a71a23
1 file changed