mirror of https://github.com/M66B/FairEmail.git
Explicitly disable JavaScript
This commit is contained in:
parent
651802150d
commit
1a1240bda1
|
@ -76,6 +76,7 @@ public class FragmentDialogOpenFull extends FragmentDialogBase {
|
|||
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING);
|
||||
|
||||
settings.setAllowFileAccess(false);
|
||||
settings.setJavaScriptEnabled(false);
|
||||
settings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
|
||||
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
|
||||
|
||||
|
|
|
@ -86,6 +86,7 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
|
|||
settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.TEXT_AUTOSIZING);
|
||||
|
||||
settings.setAllowFileAccess(false);
|
||||
settings.setJavaScriptEnabled(false);
|
||||
settings.setAllowContentAccess(true); // default
|
||||
settings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK);
|
||||
settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
|
||||
|
|
Loading…
Reference in New Issue