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());
|
webView = new WebView(context.getApplicationContext());
|
||||||
WebSettings webSettings = webView.getSettings();
|
WebSettings webSettings = webView.getSettings();
|
||||||
webSettings.setJavaScriptEnabled(true);
|
webSettings.setJavaScriptEnabled(true);
|
||||||
|
webSettings.setSavePassword(false);
|
||||||
webView.setWebChromeClient(new DoricWebChromeClient());
|
webView.setWebChromeClient(new DoricWebChromeClient());
|
||||||
webView.setWebViewClient(new DoricWebViewClient());
|
webView.setWebViewClient(new DoricWebViewClient());
|
||||||
WebViewCallback webViewCallback = new WebViewCallback();
|
WebViewCallback webViewCallback = new WebViewCallback();
|
||||||
|
@ -223,6 +223,7 @@ public class DoricWebViewJSExecutor implements IDoricJSE {
|
|||||||
webView = new WebView(context.getApplicationContext());
|
webView = new WebView(context.getApplicationContext());
|
||||||
WebSettings webSettings = webView.getSettings();
|
WebSettings webSettings = webView.getSettings();
|
||||||
webSettings.setJavaScriptEnabled(true);
|
webSettings.setJavaScriptEnabled(true);
|
||||||
|
webSettings.setSavePassword(false);
|
||||||
webView.setWebChromeClient(new DoricWebChromeClient());
|
webView.setWebChromeClient(new DoricWebChromeClient());
|
||||||
webView.loadUrl("about:blank");
|
webView.loadUrl("about:blank");
|
||||||
WebViewCallback webViewCallback = new WebViewCallback();
|
WebViewCallback webViewCallback = new WebViewCallback();
|
||||||
|
Reference in New Issue
Block a user