Pier Angelo Vendrame pushed to branch base-browser-128.4.0esr-14.5-1 at The Tor Project / Applications / Tor Browser
Commits:
- 
4b20df89
by Pier Angelo Vendrame at 2024-10-29T19:08:47+01:00
 - 
8cd93211
by Pier Angelo Vendrame at 2024-10-29T19:08:54+01:00
 
2 changed files:
- mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoSession.java
 - mobile/android/geckoview/src/main/java/org/mozilla/geckoview/WebRequest.java
 
Changes:
| ... | ... | @@ -6301,10 +6301,10 @@ public class GeckoSession { | 
| 6301 | 6301 |        }
 | 
| 6302 | 6302 | |
| 6303 | 6303 |        private static String normalizePath(String input) {
 | 
| 6304 | -          // For an unclear reason, Android media picker delivers file paths
 | 
|
| 6305 | -          // starting with double slash. Firefox performs path validation on
 | 
|
| 6306 | -          // all paths, and double slash is deemed invalid.
 | 
|
| 6307 | -          return input.startsWith("//") ? input.substring(1) : input;
 | 
|
| 6304 | +        // For an unclear reason, Android media picker delivers file paths
 | 
|
| 6305 | +        // starting with double slash. Firefox performs path validation on
 | 
|
| 6306 | +        // all paths, and double slash is deemed invalid.
 | 
|
| 6307 | +        return input.startsWith("//") ? input.substring(1) : input;
 | 
|
| 6308 | 6308 |        }
 | 
| 6309 | 6309 | |
| 6310 | 6310 |        private static String getFile(final @NonNull Context context, final @NonNull Uri uri) {
 | 
| ... | ... | @@ -49,9 +49,7 @@ public class WebRequest extends WebMessage { | 
| 49 | 49 |    /** The value of the Referer header for this request. */
 | 
| 50 | 50 |    public final @Nullable String referrer;
 | 
| 51 | 51 | |
| 52 | -  /**
 | 
|
| 53 | -   * The value of the origin of this request.
 | 
|
| 54 | -   */
 | 
|
| 52 | +  /** The value of the origin of this request. */
 | 
|
| 55 | 53 |    public final @Nullable String origin;
 | 
| 56 | 54 | |
| 57 | 55 |    @Retention(RetentionPolicy.SOURCE)
 | 
| ... | ... | @@ -248,10 +246,10 @@ public class WebRequest extends WebMessage { | 
| 248 | 246 |       * @param origin A URI String
 | 
| 249 | 247 |       * @return This Builder instance.
 | 
| 250 | 248 |       */
 | 
| 251 | -     public @NonNull Builder origin(final @Nullable String origin) {
 | 
|
| 252 | -       mOrigin = origin;
 | 
|
| 253 | -       return this;
 | 
|
| 254 | -     }
 | 
|
| 249 | +    public @NonNull Builder origin(final @Nullable String origin) {
 | 
|
| 250 | +      mOrigin = origin;
 | 
|
| 251 | +      return this;
 | 
|
| 252 | +    }
 | 
|
| 255 | 253 | |
| 256 | 254 |      /**
 | 
| 257 | 255 |       * @return A {@link WebRequest} constructed with the values from this Builder instance.
 |