Explicitly disable JavaScript

This commit is contained in:
M66B
2023-11-26 16:05:28 +01:00
parent 651802150d
commit 1a1240bda1
2 changed files with 2 additions and 0 deletions

View File

@@ -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);