Last Comment Bug 231736 - Camino can't use the system proxy settings via a .pac
: Camino can't use the system proxy settings via a .pac
Status: RESOLVED FIXED
: fixed1.8
Product: Camino Graveyard
Classification: Graveyard
Component: OS Integration (show other bugs)
: unspecified
: PowerPC Mac OS X
: P3 normal with 4 votes (vote)
: Camino1.0
Assigned To: Simon Fraser
: benc
Mentors:
Depends on:
Blocks: 185288
  Show dependency treegraph
 
Reported: 2004-01-21 08:54 PST by Gabriel Radic
Modified: 2005-08-31 12:17 PDT (History)
5 users (show)
See Also:
QA Whiteboard:
Iteration: ---
Points: ---


Attachments
Patch (-w) (6.34 KB, patch)
2005-08-19 10:44 PDT, Simon Fraser
mikepinkerton: review+
Details | Diff | Review

Description Gabriel Radic 2004-01-21 08:54:18 PST
User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021104 Chimera/0.6
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.1) Gecko/20021104 Chimera/0.6

Since Mac OS X 10.3.2 you can specify a .PAC (Proxy Client Autoconfig) file in
the Network/Proxy preference pane. If a .pac file is defined while no settings
are provided for each service, Camino can't find it's way out. 

Everything works fine if a proxy server is specified for each service (web,
secure, ftp, etc)


Reproducible: Always

Steps to Reproduce:
Comment 1 Mike Pinkerton (not reading bugmail) 2004-01-21 09:06:29 PST
how does mozilla behave? if it's the same, we should kick the bug over there.
Comment 2 Gabriel Radic 2004-01-21 09:25:37 PST
AFAIK Mozilla does NOT use the system proxy settings but the internal
Advanced/Proxy configuration. 

So I guess this must be Camino specific.
Comment 3 Mike Pinkerton (not reading bugmail) 2004-01-21 09:45:14 PST
wait, camino and mozilla should be doing the same thing. neither use the system
settings, both use mozilla's proxy autoconfig.

i'm confused.
Comment 4 Gabriel Radic 2004-01-21 09:50:33 PST
I am 100% sure Camino is using the system proxy settings. I changed those recently to use a .pac 
instead of individual settings and Camino stopped working. I then added back the settings for the 
Web service and Camino works again.
Comment 5 Jasper 2004-09-29 11:32:39 PDT
Gabriel please update.
Comment 6 Gabriel Radic 2004-09-30 00:53:48 PDT
Jasper: the problem is still here with 2004082512 (v0.8.1).
Comment 7 Todd W. 2004-11-10 18:53:55 PST
This is still a problem as of 2004111008 (v0.8+).
It IS Camino specific since Camino uses system proxy settings and Mozilla uses it's own setitngs.
Comment 8 Oakland Raiders 2004-12-14 14:39:19 PST
I can additionally confirm the existence.  In the 12/13/2004 nightly, Camino
won't use the .pac file specified in the system wide settings.  Safari uses it
correctly.  If I specify a proxy specifically in the system wide settings (not
using the .pac) Camino uses it.  Firefox and Mozilla use their own settings (not
the OSX systemwide ones) and are not affected by this.  However, I can add the
proxy autoconfig (.pac) to Camino by adding the

user_pref("network.proxy.type", 2);
user_pref("network.proxy.autoconfig_url","path-to-.pac-file");

to my user.js file.
Comment 9 Jasper 2004-12-24 05:33:45 PST
Confirming bug and marking as new as many users say it's an issue. Mike please
takea look and comment on what should be done. Sound like something that should
be documented.
Comment 10 Simon Fraser 2005-03-25 08:45:00 PST
Yes, we have code to use the system proxy settings (I wrote it). See
-readSystemProxySettings in PreferenceManager.mm.
Comment 11 Charles Lepple 2005-07-11 16:14:37 PDT
(In reply to comment #10)
> Yes, we have code to use the system proxy settings (I wrote it). See
> -readSystemProxySettings in PreferenceManager.mm.

Do you mean this file (CVS rev 1.50)?

http://lxr.mozilla.org/mozilla/source/camino/src/preferences/PreferenceManager.mm#502

I don't know Objective C, but I suspect that it is only getting the statically
configured proxy settings (and it is not reading the .pac file URL from System
Preferences).

I was going to poke around and see what about:config says that
network.proxy.type is set to, but this nightly build (2005062008) doesn't
display anything in the about:config listbox (just the column headers under the
filter box/button).

Any suggestions for tracking this down?
Comment 12 Simon Fraser 2005-07-11 17:13:03 PDT
Oh, right, we just read mozilla prefs to get the PAC settings; we don't read
this from system prefs yet.
Comment 13 Simon Fraser 2005-08-19 10:44:26 PDT
Created attachment 193179 [details] [diff] [review]
Patch (-w)

This patch allows camino to read the system PAC settings if they exist. I had
to sniff the dictionary keys from a 10.4SDK build, because they aren't present
in the 10.2 SDK, but it's unlikely they'd change.

I also added new hidden pref, "camino.use_system_proxy_settings", defaulting to
true, which affects whether we read the proxy settings from the OS at all. This
is so that people can specify a PAC file in the camino prefs without getting it
clobbered by the OS settings.
Comment 14 Mike Pinkerton (not reading bugmail) 2005-08-19 11:53:33 PDT
Comment on attachment 193179 [details] [diff] [review]
Patch (-w)

r=pink

just make sure we update the documentation to mention this new pref needs to be
set in order to use a PAC file.
Comment 15 Simon Fraser 2005-08-19 12:08:56 PDT
Samuel: can you document this "camino.use_system_proxy_settings" pref please?
Comment 16 Simon Fraser 2005-08-19 12:29:24 PDT
Fixed on trunk and branch.

Note You need to log in before you can comment on or make changes to this bug.


Privacy Policy