Need test coverage for usage of OS proxy support

NEW
Unassigned

Status

()

Core
Networking
P5
normal
10 years ago
9 months ago

People

(Reporter: Håkan Waara, Unassigned)

Tracking

Trunk
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [necko-would-take])

(Reporter)

Description

10 years ago
bug 125995 is soon landed, and I think this means that all platforms have native support for their respective global OS proxy services.

We need some way to keep this code tested.  Maybe let one tinderbox on each OS use proxies?
Would this work in an xpcshell unit test if the system had a proxy? Also, can we set the system proxy settings from the command line? (Or programatically in some other way?) I would guess that it's just in a plist somewhere. If so, we might be able to run a small local proxy, set the system settings just for this test, and then unset them afterwards.
(Reporter)

Comment 2

10 years ago
If we do something in a C/C++/ObjC, we can just use some API calls to do change system proxy: http://developer.apple.com/documentation/Networking/Reference/SysConfig/index.html

Or, we could use a little utility called scutil that can be run from the command line to change some of these settings.
Component: Testing → Networking
QA Contact: testing → networking

Comment 3

10 years ago
I can test this as we have an authing proxy at work. What data point do you need?
(Reporter)

Comment 4

10 years ago
(In reply to comment #3)
> I can test this as we have an authing proxy at work. What data point do you
> need?

This bug tracks implementing automated test coverage of this feature. Thanks for the offer though!
Whiteboard: [necko-would-take]
You need to log in before you can comment on or make changes to this bug.