[tor-commits] [tor-browser/tor-browser-60.1.0esr-8.0-1] Bug 1455165 - Filter external apps out if needed. r=mcomella

gk at torproject.org gk at torproject.org
Mon Jul 30 11:49:58 UTC 2018


commit 3d30d5d1f2ebbdf60af0180af435afad4ba7e773
Author: Igor Oliveira <igt0 at torproject.org>
Date:   Wed Apr 18 17:16:00 2018 +0300

    Bug 1455165 - Filter external apps out if needed. r=mcomella
---
 mobile/android/chrome/content/browser.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js
index 5f49c07a5ca5..2dc973a15ee7 100644
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -6235,6 +6235,10 @@ var ExternalApps = {
 
   filter: {
     matches: function(aElement) {
+      if (!Services.prefs.getBoolPref("network.protocol-handler.external-default")) {
+        return false;
+      }
+
       let uri = ExternalApps._getMediaLink(aElement);
       let apps = [];
       if (uri) {





More information about the tor-commits mailing list