Ticket #27111: 0001-Bug-27111-Configure-tor-browser-for-mobile-to-load-a.patch

File 0001-Bug-27111-Configure-tor-browser-for-mobile-to-load-a.patch, 1.8 KB (added by igt0, 9 months ago)
  • mobile/android/base/java/org/mozilla/gecko/BrowserApp.java

    From 0109503b8f626c19e2682d75a432e227c4778167 Mon Sep 17 00:00:00 2001
    From: Igor Oliveira <igt0@torproject.org>
    Date: Thu, 15 Nov 2018 07:33:54 -0200
    Subject: [PATCH] Bug 27111: Configure tor browser for mobile to load about:tor
    
    - Add preferences.json: it is used to configure android specific
    preferences
    
    - Keep the ActivityStream HomePager closed when the user clicks in the
    url bar
    ---
     mobile/android/base/java/org/mozilla/gecko/BrowserApp.java     |  2 --
     mobile/android/torbrowser/assets/distribution/preferences.json | 10 ++++++++++
     2 files changed, 10 insertions(+), 2 deletions(-)
     create mode 100644 mobile/android/torbrowser/assets/distribution/preferences.json
    
    diff --git a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java
    index ea9480d149cc..5b781e5088dd 100644
    a b public class BrowserApp extends GeckoApp 
    27342734
    27352735        mBrowserToolbar.startEditing(url, animator);
    27362736
    2737         showHomePagerWithAnimator(panelId, null, animator);
    2738 
    27392737        animator.start();
    27402738        Telemetry.startUISession(TelemetryContract.Session.AWESOMESCREEN);
    27412739    }
  • new file mobile/android/torbrowser/assets/distribution/preferences.json

    diff --git a/mobile/android/torbrowser/assets/distribution/preferences.json b/mobile/android/torbrowser/assets/distribution/preferences.json
    new file mode 100644
    index 000000000000..bebd14967d8e
    - +  
     1{
     2  "ApplicationPreferences": {
     3    "newtab.load_homepage": true
     4  },
     5  "AndroidPreferences": {
     6    "homepage": "about:tor",
     7    "startpane_enabled_after_57": true,
     8    "startpane_enabled": true
     9  }
     10}