From d64d9c460a97e660cbcc881d5dbad0493f2f13c7 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 24 Dec 2010 22:48:17 +0000 Subject: [PATCH] Disable webview cache and javascript. (Mail + Javascript == scary) --- src/com/fsck/k9/activity/MessageView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/fsck/k9/activity/MessageView.java b/src/com/fsck/k9/activity/MessageView.java index 024b2a909..2579631ca 100644 --- a/src/com/fsck/k9/activity/MessageView.java +++ b/src/com/fsck/k9/activity/MessageView.java @@ -916,7 +916,9 @@ public class MessageView extends K9Activity implements OnClickListener final WebSettings webSettings = mMessageContentView.getSettings(); + webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE); webSettings.setSupportZoom(true); + webSettings.setJavaScriptEnabled(false); webSettings.setLoadsImagesAutomatically(true); webSettings.setRenderPriority(WebSettings.RenderPriority.HIGH);