Closed Bug 4205 Opened 26 years ago Closed 26 years ago

Prefs/libnet: proxy pref not working on Linux

Categories

(Core :: Networking, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: mcafee, Assigned: dp)

Details

[user reports:] > I am having problems getting the proxy information set for the M3 > build on linux. > I can see from the release notes that preferences.js has to be in the > current directory (or user in my case), > but even after I move my Netscape 4.07 preferences.js file to my current > directory (debug version) apprunner still doesn't set > the proxys. In addition I tried putting a copy of preferences.js in > ~/.mozilla with no success. > My next thought was to take grep out all the none proxy info, so > that my preferences.js looked like: > > user_pref("network.proxy.http", "proxy.jf.intel.com"); > user_pref("network.proxy.http_port", 911); > > ... but this didn't help anything and the debug info from my terminal didn't > make any references to preferences.js or proxy. hubie responds: I'm pretty sure it is reading prefs, but via a static initializer before main is called. Pref*.js doesn't get read in until main() is called, so netlib assigns default values. For M3 we attempted to read in prefs upon first access, but then realized that javascript (used to read prefs) doesn't like being run in threads other than the UI thread. We ended up starting up preferences [loading pref*.js in main()]. The disadvantage being people cannot use read prefs in static initializers. On windows, the netlib static initializers don't get called until the DLL is used, so proxy settings work on windows.
Assignee: dp → hshaw
Assignee: hshaw → dp
DP, you mentioned there was a flag to compile netlib without static initializers and there was a possibility they used this on Mac. Could you assign this bug to someone who knows about the flag? Thanks - Hubie
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Target Milestone: M4
I fixed netlib to not use static initialization on unix. This should be fixed now.
Status: RESOLVED → VERIFIED
verified proxy settings working on Unix with 4/26 builds.
Changing all Networking Library/Browser bugs to Networking-Core component for Browser. Occasionally, Bugzilla will burp and cause Verified bugs to reopen when I do this in a bulk change. If this happens, I will fix. ;-)
Bulk move of all Networking-Core (to be deleted component) bugs to new Networking component.
You need to log in before you can comment on or make changes to this bug.