Closed Bug 1244760 Opened 8 years ago Closed 8 years ago

DownloadContentService: Consider using HttpsUrlConnection

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

Tracking

(firefox47 fixed)

RESOLVED FIXED
Firefox 47
Tracking Status
firefox47 --- fixed

People

(Reporter: sebastian, Assigned: sebastian)

References

Details

Attachments

(1 file)

* Our version of HttpClient does not support SNI (bug 765064). And after transfering the CDN to Cloudfront we'll require support for SNI (bug 1238742).

* DownloadContentService is just downloading stuff via simple GET requests. HttpsUrlConnection supports everything we need.
Comment on attachment 8714426 [details]
MozReview Request: Bug 1244760 - DownloadContentService: Use HttpUrlConnection instead of HttpClient. r=rnewman

https://reviewboard.mozilla.org/r/33077/#review29999

::: mobile/android/base/java/org/mozilla/gecko/dlc/DownloadAction.java:262
(Diff revision 1)
> -                .setUserAgent(HardwareUtils.isTablet() ?
> +            HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();

Set the system property `http.keepAlive` to `true` here. We want these to stay up.
Attachment #8714426 - Flags: review?(rnewman) → review+
Depends on: 1225149
https://hg.mozilla.org/integration/fx-team/rev/afc316a28da296cdc4208013d1598519628b6c63
Bug 1244760 - DownloadContentService: Use HttpUrlConnection instead of HttpClient. r=rnewman
https://hg.mozilla.org/mozilla-central/rev/afc316a28da2
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 47
Depends on: 1250260
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: