Closed Bug 167900 Opened 22 years ago Closed 22 years ago

Proxy settings are not updated after changing Location

Categories

(Camino Graveyard :: OS Integration, defect, P2)

PowerPC
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: soob, Assigned: sfraser_bugs)

References

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20020909
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20020909

When Chimera starts up, it grabs the proxy settings for the current network
location. After changing Location, Chimera should pick up the new proxy settings
for the new current Location. Currently, Chimera must be restarted for the new
proxy settings to take effect.

This particular problem might be difficult to reproduce if you don't have easy
access to two different networks... one with a proxy server and one without.

With my PowerBook, I go between home (no proxy) and work (has proxy) every day.
I must restart Chimera if I want to continue browsing.

Reproducible: Always

Steps to Reproduce:
1. Configure one network location for direct access with no proxy. Start Chimera
and verify ability to browse external web.
2. Change networks to one requiring access through a proxy server. (Do not
restart Chimera).
3. Configure another network location for access through the proxy server.
Switch to that Location.
4. Verify ability to browse external web.

Actual Results:  
Chimera does not update its internal proxy settings. Opening prefs.js shows
there are no proxy settings available.

After restarting Chimera, the prefs.js file shows the proxy settings gleaned
from the Network Preferences.

Expected Results:  
Chimera should have updated its prefs to reflect the new proxy settings after
the Location switch
Yes, I can confirm this annoyance from experience (being at a school with proxy
servers with my iBook once a week).

Does OS X actually notify applications when the network location has changed,
though?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Don't know if the OS notifies apps when the location changes, but I can make my
location change and OmniWeb properly follows the connection.

On a related note, I have one location with two active interfaces: wireless (for
home - the first interface) and wired (for work - the second interface). With
that setup, I can move back and forth between work and home and not have to
change my location for basic (like email) network connectivity. When using
Mozilla, I only have to change the proxy settings and all is well with this
setup (though I'd rather not have to do that either) and OnmiWeb still picks up
the proper proxy for the active interface.
We need to listen for Internet Config changes.
Status: NEW → ASSIGNED
Priority: -- → P2
On Mac OS X, the System Configuration Framework is the underlying implementation
of  "Internet Config".  You can register a run loop source / callback for
notification when certain events occur.  I can offer some help and/or sample
code to fix this if you need, because I have some experience with SCF.  My email
is smithkennedy@mac.com.  Less than a page of code is required for this.
Fixed. We register with the System Configuration framework for notifications
when the proxy settings change.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.