Closed
Bug 1324427
Opened 8 years ago
Closed 8 years ago
Switchboard: Set user agent and proxy
Categories
(Firefox for Android Graveyard :: General, defect, P3)
Tracking
(firefox54 fixed)
RESOLVED
FIXED
Firefox 54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: sebastian, Assigned: swaroop.rao, Mentored)
References
Details
(Whiteboard: [lang=java][good first bug])
Attachments
(1 file)
I just saw that our Switchboard code does not set a user agent and does not use a proxy if one is set:
https://dxr.mozilla.org/mozilla-central/source/mobile/android/thirdparty/com/keepsafe/switchboard/SwitchBoard.java#354
There's a helper method to create a HttpUrlConnection with proxy settings here:
https://dxr.mozilla.org/mozilla-central/source/mobile/android/geckoview/src/main/java/org/mozilla/gecko/util/ProxySelector.java#32
And you can set the user agent like we do here:
https://dxr.mozilla.org/mozilla-central/source/mobile/android/base/java/org/mozilla/gecko/dlc/BaseAction.java#154-156
Reporter | ||
Comment 1•8 years ago
|
||
If you are new then to start, set up a build environment - you can see the instructions here:
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_for_Android_build
Fix the issue mentioned in comment 0 and then you'll need to upload a patch - see:
http://mozilla-version-control-tools.readthedocs.io/en/latest/mozreview/commits.html
If you need any help, you can reply to this bug, or feel free to message me on IRC - my nick is "sebastian" and you can find me and other helpful folks in #mobile. If you need IRC setup instructions, see https://wiki.mozilla.org/IRC
Reporter | ||
Updated•8 years ago
|
Priority: -- → P3
Comment 2•8 years ago
|
||
I would like to work on this issue.
Reporter | ||
Comment 3•8 years ago
|
||
Okay! We assign bugs after a first patch has been uploaded. Let me know here (or in #mobile on IRC) if you need any help.
Comment 4•8 years ago
|
||
Since I am new to development,I would like to know if I could build up the environment on Ubuntu.
Reporter | ||
Comment 5•8 years ago
|
||
Yes, this should work.
Comment 6•8 years ago
|
||
Mr. Sebastian,
I would like to work on this issue.
Assignee | ||
Comment 7•8 years ago
|
||
Sebastian, if I try to use the code from
Assignee | ||
Comment 8•8 years ago
|
||
Sorry, looks like I submitted my comment by mistake earlier.I'm still trying to get used to the keyboard on my new laptop.
Anyway, if I try to use the code from HardwareUtils/ProxySelector/AppConstants as suggested in the description above, it will require me to add a dependency on those modules since the SwitchBoard class is in the thirdparty module. Is it OK to add the dependency?
Flags: needinfo?(s.kaspari)
Reporter | ||
Comment 9•8 years ago
|
||
Thanks for bringing this up! I filed bug 1328837 to move the Switchboard code into our module/package. It has been heavily modified so that it's not really the original third-party code anymore.
Flags: needinfo?(s.kaspari)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 11•8 years ago
|
||
I've made the necessary changes and pushed for review.
Reporter | ||
Updated•8 years ago
|
Assignee: nobody → swaroop.rao
Status: NEW → ASSIGNED
Reporter | ||
Comment 12•8 years ago
|
||
mozreview-review |
Comment on attachment 8832667 [details]
Bug 1324427 - Switchboard: Set user agent and proxy; Using proxy and setting user agent from ProxySelector and BaseAction classes respectively.
https://reviewboard.mozilla.org/r/108832/#review110250
LGTM. Thanks!
Try-Run:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1acf37fc0bb8
Attachment #8832667 -
Flags: review?(s.kaspari) → review+
Assignee | ||
Updated•8 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 13•8 years ago
|
||
try run has passed. I have set the checkin-needed flag.
Comment 14•8 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/bcabeb8c81a2
Switchboard: Set user agent and proxy; Using proxy and setting user agent from ProxySelector and BaseAction classes respectively. r=sebastian
Keywords: checkin-needed
Comment 15•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 54
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•