Skip to content

Commit 911d63d

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Fix bug 5309557 - Monkeys and SIGSEGV do not mix!"
2 parents 98da88c + cc2264f commit 911d63d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/java/android/webkit/WebView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5580,15 +5580,15 @@ public void onWindowFocusChanged(boolean hasWindowFocus) {
55805580
setActive(hasWindowFocus);
55815581
if (hasWindowFocus) {
55825582
JWebCoreJavaBridge.setActiveWebView(this);
5583-
if (mPictureUpdatePausedForFocusChange) {
5583+
if (mPictureUpdatePausedForFocusChange && mNativeClass != 0) {
55845584
WebViewCore.resumeUpdatePicture(mWebViewCore);
55855585
nativeSetIsScrolling(false);
55865586
mPictureUpdatePausedForFocusChange = false;
55875587
}
55885588
} else {
55895589
JWebCoreJavaBridge.removeActiveWebView(this);
55905590
final WebSettings settings = getSettings();
5591-
if (settings != null && settings.enableSmoothTransition() &&
5591+
if (settings != null && settings.enableSmoothTransition() && mNativeClass != 0 &&
55925592
mWebViewCore != null && !WebViewCore.isUpdatePicturePaused(mWebViewCore)) {
55935593
WebViewCore.pauseUpdatePicture(mWebViewCore);
55945594
nativeSetIsScrolling(true);

0 commit comments

Comments
 (0)