diff --git a/core/java/android/webkit/WebViewCore.java b/core/java/android/webkit/WebViewCore.java index 73a30c4b98551..c895b84c8aa64 100644 --- a/core/java/android/webkit/WebViewCore.java +++ b/core/java/android/webkit/WebViewCore.java @@ -538,6 +538,8 @@ public final class WebViewCore { private native void nativeSendListBoxChoice(int choice); + private native void nativeCloseIdleConnections(); + /* Tell webkit what its width and height are, for the purposes of layout/line-breaking. These coordinates are in document space, which is the same as View coords unless we have zoomed the document @@ -1262,6 +1264,8 @@ public final class WebViewCore { if (!JniUtil.useChromiumHttpStack()) { WebViewWorker.getHandler().sendEmptyMessage( WebViewWorker.MSG_PAUSE_CACHE_TRANSACTION); + } else { + nativeCloseIdleConnections(); } break;