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

Commit f6d69ae0 authored by Selim Gurun's avatar Selim Gurun Committed by Gerrit Code Review
Browse files

Merge "Adding freeMemoryForTests static method to WebView."

parents 407f74f4 c6a2a6e2
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -685,6 +685,15 @@ public class WebView extends AbsoluteLayout
        getFactory().getStatics().setPlatformNotificationsEnabled(false);
    }

    /**
     * Used only by internal tests to free up memory.
     * @hide
     */
    public static void freeMemoryForTests() {
        checkThread();
        getFactory().getStatics().freeMemoryForTests();
    }

    /**
     * Informs WebView of the network state. This is used to set
     * the JavaScript property window.navigator.isOnline and
+5 −0
Original line number Diff line number Diff line
@@ -49,6 +49,11 @@ public interface WebViewFactoryProvider {
         */
        String getDefaultUserAgent(Context context);

        /**
         * Used for tests only.
         */
         void freeMemoryForTests();

        /**
         * Implements the API method:
         * {@link android.webkit.WebView#setWebContentsDebuggingEnabled(boolean) }