Merge "Close idle connections on pause timers"
This commit is contained in:
committed by
Android (Google) Code Review
commit
ff7130288f
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user