Commit 569f626d authored by Matthew Finkel's avatar Matthew Finkel Committed by Matthew Finkel
Browse files

Bug 25741 - TBA: Add mozconfig for Android and pertinent branding files.

Based on Orfox initial commits with fixup commits squashed and
rebranding Orfox -> Tor Browser

See original source from ce3fab3c90eb4a3892181ee36b037da04c785d99
https://github.com/guardianproject/tor-browser.git

Dropped symlinks

Also:
Bug 27125 - Move localized Tor Browser for Android strings into separate file
Bug 28622: Update Tor Browser icon for mobile
Bug 27472 - Export MOZILLA_OFFICIAL during Android build
Bug 30136: Use 'Tor Browser' as brand name on mobile, too

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
parent ff4ffc55
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -324,6 +324,9 @@ pref("dom.presentation.receiver.enabled", false);
pref("dom.audiochannel.audioCompeting", false);
pref("dom.audiochannel.mediaControl", false);

// Bug 31144 - Avoid proxy-bypass using the Android native download manager.
pref("browser.download.forward_oma_android_download_manager", false);

#expand pref("torbrowser.version", __TOR_BROWSER_VERSION_QUOTED__);

// Old torbutton prefs
+54 −0
Original line number Diff line number Diff line
// Import all prefs from the canonical file
// We override mobile-specific prefs below
// Tor Browser for Android
// Do not edit this file.

#include ../../../browser/app/profile/000-tor-browser.js

// Space separated list of URLs that are allowed to send objects (instead of
// only strings) through webchannels. This list is duplicated in browser/app/profile/firefox.js
pref("webchannel.allowObject.urlWhitelist", "");

// Disable browser auto updaters
pref("app.update.auto", false);
pref("browser.startup.homepage_override.mstone", "ignore");

// Clear data on quit
pref("privacy.clearOnShutdown.cache", true);
pref("privacy.clearOnShutdown.cookies",true);
pref("privacy.clearOnShutdown.downloads",true);
pref("privacy.clearOnShutdown.formdata",true);
pref("privacy.clearOnShutdown.history",true);
pref("privacy.clearOnShutdown.offlineApps",true);
pref("privacy.clearOnShutdown.passwords",true);
pref("privacy.clearOnShutdown.sessions",true);
pref("privacy.clearOnShutdown.siteSettings",true);

// Disable Control media casting & mirroring features
pref("browser.casting.enabled", false);

// controls if we want camera support
pref("device.camera.enabled", false);
pref("media.realtime_decoder.enabled", false);

// Do not fetch updated per-site user-agent strings from Mozilla
// See ua-update.json.in for the packaged UA override list
// See https://bugzilla.mozilla.org/show_bug.cgi?id=897221
pref("general.useragent.updates.enabled", false);
pref("general.useragent.updates.url", "");

// Enable touch events on Android (highlighting text, etc)
pref("dom.w3c_touch_events.enabled", 2);

// No HLS support for now due to browser freezing, see: #29859.
pref("media.hls.enabled", false);

// Inherit locale from the OS, used for multi-locale builds
pref("intl.locale.requested", "");

// Disable WebAuthn. It requires Google Play Services, so it isn't
// available, but avoid any potential problems.
pref("security.webauth.webauthn_enable_android_fido2", false);

// Disable the External App Blocker on Android
pref("extensions.torbutton.launch_warning", false);
+2 −1
Original line number Diff line number Diff line
@@ -2496,7 +2496,8 @@ public class BrowserApp extends GeckoApp

        mBrowserToolbar.startEditing(url, animator);

        showHomePagerWithAnimator(panelId, null, animator);
        // Don't show the HomePager when entering Edit mode
        //showHomePagerWithAnimator(panelId, null, animator);

        animator.start();
        Telemetry.startUISession(TelemetryContract.Session.AWESOMESCREEN);
+5 −0
Original line number Diff line number Diff line
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!ENTITY firstrun_urlbar_subtext2 "A modern mobile browser from The Tor Project, the non-profit committed to a free and open web.">
+1 −0
Original line number Diff line number Diff line
@@ -181,6 +181,7 @@ for f in ['res/values/strings.xml',
        # The `locales/en-US/` will be rewritten to the locale-specific path.
        'locales/en-US/android_strings.dtd',
        'locales/en-US/sync_strings.dtd',
        'locales/en-US/torbrowser_strings.dtd',
    ]

generated_inputs = [
Loading