ma1 pushed to branch base-browser-128.10.0esr-14.5-1 at The Tor Project / 
Applications / Tor Browser


Commits:
d5b02823 by hackademix at 2025-04-24T20:48:36+02:00
fixup! Firefox preference overrides.

Disable the UITour API.

- - - - -
37d8dd8d by gela at 2025-04-24T20:48:38+02:00
Bug 1929478 - Update log statement r=skhan

Differential Revision: https://phabricator.services.mozilla.com/D242094
- - - - -
ffc488ed by Titouan Thibaud at 2025-04-24T20:48:40+02:00
Bug 1945705 - Fix malformed download filename extracted from contentDisposition 
r=android-reviewers,rsainani

Differential Revision: https://phabricator.services.mozilla.com/D241072
- - - - -


4 changed files:

- browser/app/profile/001-base-profile.js
- 
mobile/android/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngineSession.kt
- 
mobile/android/android-components/components/support/utils/src/main/java/mozilla/components/support/utils/DownloadUtils.kt
- 
mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/GeckoLoader.java


Changes:

=====================================
browser/app/profile/001-base-profile.js
=====================================
@@ -208,6 +208,11 @@ pref("datareporting.policy.dataSubmissionEnabled", false);
 pref("browser.urlbar.recentsearches.featureGate", false);
 pref("browser.urlbar.suggest.recentsearches", false);
 
+// Disable the UITour API
+// See tor-browser#41457 and
+// https://bugzilla.mozilla.org/show_bug.cgi?id=1915280
+pref("browser.uitour.enabled", false);
+
 // Make sure Unified Telemetry is really disabled, see: #18738.
 pref("toolkit.telemetry.unified", false);
 // This needs to be locked, or nightly builds will automatically lock it to 
true


=====================================
mobile/android/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngineSession.kt
=====================================
@@ -57,7 +57,6 @@ import mozilla.components.support.base.facts.Action
 import mozilla.components.support.base.facts.Fact
 import mozilla.components.support.base.facts.collect
 import mozilla.components.support.base.log.logger.Logger
-import mozilla.components.support.ktx.kotlin.decode
 import mozilla.components.support.ktx.kotlin.isEmail
 import mozilla.components.support.ktx.kotlin.isExtensionUrl
 import mozilla.components.support.ktx.kotlin.isGeoLocation
@@ -1524,7 +1523,7 @@ class GeckoEngineSession(
                         url = url,
                         contentLength = contentLength,
                         contentType = 
DownloadUtils.sanitizeMimeType(contentType),
-                        fileName = fileName.sanitizeFileName().decode(),
+                        fileName = fileName.sanitizeFileName(),
                         response = response,
                         isPrivate = privateMode,
                         openInApp = webResponse.requestExternalApp,


=====================================
mobile/android/android-components/components/support/utils/src/main/java/mozilla/components/support/utils/DownloadUtils.kt
=====================================
@@ -274,8 +274,9 @@ object DownloadUtils {
 
     private fun parseContentDisposition(contentDisposition: String): String? {
         return try {
-            parseContentDispositionWithFileName(contentDisposition)
+            val fileName = 
parseContentDispositionWithFileName(contentDisposition)
                 ?: 
parseContentDispositionWithFileNameAsterisk(contentDisposition)
+            Uri.decode(fileName)
         } catch (ex: IllegalStateException) {
             // This function is defined as returning null when it can't parse 
the header
             null


=====================================
mobile/android/geckoview/src/main/java/org/mozilla/gecko/mozglue/GeckoLoader.java
=====================================
@@ -211,7 +211,7 @@ public final class GeckoLoader {
       throw new IllegalStateException("Invalid library path for libmozglue.so: 
" + mozglue);
     }
     final String base = mozglue.substring(0, lastSlash);
-    Log.i(LOGTAG, "Library base=" + base);
+    Log.d(LOGTAG, "Library base=" + base);
     return base;
   }
 



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/5d7a4431d13e341c818ce3a218529970d750ca4c...ffc488edee42464f08b2a6dda323b7b770a86f55

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/compare/5d7a4431d13e341c818ce3a218529970d750ca4c...ffc488edee42464f08b2a6dda323b7b770a86f55
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to