6f7cc4e24b8944a00ec1396419bb11cf6fa00229 |
|
29-May-2012 |
Magnus Hallqvist <magnus.hallqvist@sonymobile.com> |
Don't replace file extension when mime-type is incorrect When downloading content from a server that claims content to be text/plain or application/octet-stream a guess is made of the proper mime-type from a possible "file-extension" in the URL. When creating the filename of the downloaded content any file extension that does not match the mime-type is replaced with one derived from the mime-type (.txt for text/plain, none for application/octet-stream). However the guessed mime-type is not used in the filename creation, so content with a proper file extension but a text/plain mime-type will have its file extension replaced with .txt derived from the incorrect mime-type. This fix will use the guessed mime-type when creating the filename to avoid replacing a correct file extension. Change-Id: I5df642e94948914708af99a4d902b253ac8a48dd
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
a770f8d4bd583e9a719af6ce314838db12003b33 |
|
13-Jun-2012 |
Selim Gurun <sgurun@google.com> |
Encode characters that java.net.URI rejects Bug: 5952386 Our java.net.URI implementation conforms to an old obsolete RFC and it is very restrictive. Since in our download path, we use download manager and so java.net.URI, this causes an odd bug (i.e. URIs that are fetched fine by chromium http stack fails when download manager is used). Also there is a second bug that when URI parsing fails and an exception is thrown, we fail to catch it and crash. This CL fixes both. Change-Id: I62ac289566efae97dd2161b8041b06a0a87211cb
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
a2d848cd1200f98aac3d9f71e4324b1a051065d7 |
|
01-Aug-2011 |
Ben Murdoch <benm@google.com> |
Factor Activity dependency out of FetchUrlMimeType FetchUrlMimeType doesn't need an Activity, an Application Context will do. Bug: 5084293 Change-Id: Ifcd400e0b639e0120f4f89c292acadfe467f92ab
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
c2df8342039829c868b30ad3bc3f865e26a04b1c |
|
19-Dec-2010 |
Vasu Nori <vnori@google.com> |
bug:3297328 set download destination dir to /sdcard/Download downlaoded files should go into /sdcard/Download, like they used to in GB and earlier. But a minor difference in the download dir name: it used to be /sdcard/download in before HC /sdcard/Download in HC how serious is this difference? Change-Id: Ib56d8ee6a1393fd781399281be98b8c52831ebe1
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
63c0266b5d1fca4df859fe4fa3a9555d0783a2b6 |
|
18-Nov-2010 |
Leon Scroggins <scroggo@google.com> |
Move download requests to the background. Bug:3189668 Do not create a DownloadHandler since the methods can all be static. Do not pass the length to DownloadHandler, since it is no longer used. Change-Id: I280160f62906d1acb263b45fde57062210005a0a
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
8233facddcc51865d612a919d450db6954aa48e3 |
|
27-Oct-2010 |
Michael Kolb <kolby@google.com> |
Controller Refactor Bug: 3170671 First step towards a model/view/control design in Browser introduced Controller object started separating UI code represent state of the app in one place only Change-Id: Ica387d6bde2dcf1a4993c3db0cce498cf34ff60f
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
e80fbcb19a486400013e85c53b112057fdaa48bb |
|
01-Nov-2010 |
Jean-Baptiste Queru <jbq@google.com> |
resolved conflicts for merge of 8adc828f to master Change-Id: I55678d34730df191d541762d4b2025bff2f2460b
|
c6076533b489c17493640c14935324a30f582903 |
|
22-Oct-2010 |
Leon Scroggins <scroggo@google.com> |
Use the new public API for DownloadManager. Bug:3116742 Change-Id: I5d0d9a12e1bd601cf6a95198578ce8f9acd81372
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
65bb1acac5dca507c5f8e5c8cd6fd7cadce37d6c |
|
27-Oct-2010 |
Mattias Falk <mattias.falk@sonyericsson.com> |
Add support for Content-Disposition when save link Content-Disposition isn't used when downloading an item by long-click the link. It'll result in different file name if the item is downloaded by clicking the link or if it's downloaded by long-click the link and select Save link if the HTTP response includes the Content-Disposition header with the filename attribute Change-Id: I7eacfd1128da261e0674bbdc3064208a82e46ab3
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
d159ec534823b87f9896843e95912b0df8c27e16 |
|
16-Jun-2010 |
Andreas Sandblad <andreas.sandblad@sonyericsson.com> |
Use proxy for downloads. Use the new Proxy method getPreferredHttpHost to use proxy for downloads. Change-Id: I4224e29ba4b37bd570d84382764e08f9babe6530
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
385effd3192a16b737a7d4fbe4fc71c6cf467627 |
|
25-Feb-2010 |
Dianne Hackborn <hackbod@google.com> |
Update to reflect android-common no longer in framework.
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
f08809b2cf7e502fef5965691a7fb6d7cf0322af |
|
21-Jan-2010 |
Leon Scroggins <scroggo@google.com> |
Do not show the downloads page without the user explicitly requesting it. Fixes http://b/issue?id=1671150
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
1e5bad97ca8fb9b12501f4f747941d02f03e1362 |
|
15-Jan-2010 |
Jean-Baptiste Queru <jbq@google.com> |
Use the private Download Manager APIs. This boils down to using Downloads.Impl instead of Downloads The APIs that were being used so far are going to disappear to be replaced by a new set of APIs, but in order for the browser to be able to continue using the old APIs a new copy of those APIs was created "on the side" so that the browser doesn't need to change much. Bug: 2245521 Change-Id: I33c526331cce006710b1f934a4aeb64cdb95d62e
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
c6343adff2abb5ae8ec2cc7ba613dd7e48ba7e9a |
|
12-Dec-2009 |
Paul Westbrook <pwestbro@google.com> |
Changed class paths for classes moved in unbundling effort
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
3eb9dc2e3db57c65156bfab36f344a45fc4cf9f7 |
|
11-Aug-2009 |
Cary Clark <cary@android.com> |
remove unused variable found by findbugs http://b/issue?id=1856781
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
3dc09b269fe4af164371f7a8268a5554b32c1be2 |
|
01-Apr-2009 |
Jean-Baptiste Queru <jbq@google.com> |
Use the new download manager APIs introduced in change 7400 Conflicts: src/com/android/browser/BrowserActivity.java
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
0c90888c75eed12f6e2e14a9044faf50bd4af8ed |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
8611831e36b71c844a14788998728f3cd625b833 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|
ed217d91fb3f1a8f4e75ab36ef81d72ef9f4e6d6 |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/packages/apps/Browser/src/com/android/browser/FetchUrlMimeType.java
|