API for configuring proxies checked in
A API for configuring proxies has now been checked in.
I'd like to provide an interface so that an extension or embedder can easily override the proxy configuration without affecting user visible preferences. When nsProtocolProxyService::ExamineForProxy determines, using its existing logic, that it should go direct, it would query this new interface to check if another proxy should be used. The new interface, or proxy provider, would return a PAC string. We may want to support multiple proxy providers, using some sort of ordering. Perhaps we'd query them all and concatenate the result, allowing proxy failover logic to come into play. Or perhaps we'd stop when the first proxy provider returned a non-direct result. I'm not sure which of those I prefer, but I am concerned about performance.
Read the bug report