fix security issue
This commit is contained in:
parent
d8615b2f9a
commit
0a305b3104
@ -325,6 +325,7 @@ public class DoricWebShellJSExecutor implements IDoricJSE {
|
||||
webView = new WebView(context.getApplicationContext());
|
||||
WebSettings webSettings = webView.getSettings();
|
||||
webSettings.setJavaScriptEnabled(true);
|
||||
webSettings.setSavePassword(false);
|
||||
webView.setWebChromeClient(new DoricWebChromeClient());
|
||||
webView.setWebViewClient(new DoricWebViewClient());
|
||||
WebViewCallback webViewCallback = new WebViewCallback();
|
||||
|
@ -223,6 +223,7 @@ public class DoricWebViewJSExecutor implements IDoricJSE {
|
||||
webView = new WebView(context.getApplicationContext());
|
||||
WebSettings webSettings = webView.getSettings();
|
||||
webSettings.setJavaScriptEnabled(true);
|
||||
webSettings.setSavePassword(false);
|
||||
webView.setWebChromeClient(new DoricWebChromeClient());
|
||||
webView.loadUrl("about:blank");
|
||||
WebViewCallback webViewCallback = new WebViewCallback();
|
||||
|
Reference in New Issue
Block a user