From 10645fdf7f7dd6ee7368c96ad5be32d70f7f7099 Mon Sep 17 00:00:00 2001
From: Kathy Brade <brade@pearlcrescent.com>
Date: Wed, 24 Jun 2015 11:01:11 -0400
Subject: [PATCH] Bug 16439: Remove screencasting code

We avoid including the screencasting code on mobile (it got ripped out
for desktop in bug 1393582) by simply excluding the related JS modules
from Tor Browser.
---
 toolkit/modules/moz.build | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/toolkit/modules/moz.build b/toolkit/modules/moz.build
index eae731c895baa..096a2c0230bb0 100644
--- a/toolkit/modules/moz.build
+++ b/toolkit/modules/moz.build
@@ -266,10 +266,11 @@ if 'Android' != CONFIG['OS_TARGET']:
     ]
 else:
     DEFINES['ANDROID'] = True
-    EXTRA_JS_MODULES += [
-        'secondscreen/RokuApp.jsm',
-        'secondscreen/SimpleServiceDiscovery.jsm',
-    ]
+    if not CONFIG['TOR_BROWSER_VERSION']:
+        EXTRA_JS_MODULES += [
+            'secondscreen/RokuApp.jsm',
+            'secondscreen/SimpleServiceDiscovery.jsm',
+        ]
 
 
 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
-- 
GitLab