Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff713028 authored by Kristian Monsen's avatar Kristian Monsen Committed by Android (Google) Code Review
Browse files

Merge "Close idle connections on pause timers"

parents a55c369e 64decc60
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;