[tbb-commits] [tor-browser/tor-browser-60.1.0esr-8.0-1] Orfox: disable screenshots and prevent page from being in "recent apps"

gk at torproject.org gk at torproject.org
Fri Jul 27 08:37:27 UTC 2018


commit f44bf9a30b66b7b0ee34cc2daa89b1bde46f12d2
Author: Hans-Christoph Steiner <hans at eds.org>
Date:   Sat Nov 21 00:10:06 2015 +0100

    Orfox: disable screenshots and prevent page from being in "recent apps"
    
    Signed-off-by: Amogh Pradeep <amoghbl1 at gmail.com>
---
 mobile/android/base/java/org/mozilla/gecko/GeckoApp.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
index 1f2f95490d0a..ada3e5fa5b0c 100644
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
@@ -78,6 +78,7 @@ import android.view.MotionEvent;
 import android.view.View;
 import android.view.ViewTreeObserver;
 import android.view.Window;
+import android.view.WindowManager;
 import android.widget.AdapterView;
 import android.widget.Button;
 import android.widget.ListView;
@@ -1068,6 +1069,9 @@ public abstract class GeckoApp extends GeckoActivity
 
         GeckoScreenOrientation.getInstance().update(getResources().getConfiguration().orientation);
 
+        // disable screenshots and pic in "recent apps"
+        getWindow().addFlags(WindowManager.LayoutParams.FLAG_SECURE);
+
         setContentView(getLayout());
 
         // Set up Gecko layout.





More information about the tbb-commits mailing list