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

Commit fa44314d authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Force close in WebView.

bug:3504589

WebView#removeJavascriptInterface was not performing check if
a mWebViewCore instance is present. Added such a check.

Change-Id: I7f6dfe51a08f23dddf2fc94df635fdfa68e9a7cf
parent f8677061
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -3666,10 +3666,12 @@ public class WebView extends AbsoluteLayout
     * @param interfaceName The name of the interface to remove.
     */
    public void removeJavascriptInterface(String interfaceName) {
        if (mWebViewCore != null) {
            WebViewCore.JSInterfaceData arg = new WebViewCore.JSInterfaceData();
            arg.mInterfaceName = interfaceName;
            mWebViewCore.sendMessage(EventHub.REMOVE_JS_INTERFACE, arg);
        }
    }

    /**
     * Return the WebSettings object used to control the settings for this