Closed Bug 27141 Opened 26 years ago Closed 26 years ago

network.proxy.no_proxies_on pref is not being written/read

Categories

(SeaMonkey :: Preferences, defect, P3)

x86
All
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: gagan, Assigned: matt)

References

Details

(Whiteboard: [pdt+])

"network.proxy.no_proxies_on" is not being written or read. This is blocking a PDT+ for me...
adding the blocker... and hence marking this as PDT+ Neeti: to verify this working the best way is to try reading the pref. (either in a test code) or just wait for my checkins to partial fix of bug 17158 that I will be checking in tonite.
Blocks: 17158
Whiteboard: [pdt+]
Gagan, Can you point me to the code where you are trying to get and set "network.proxy.no_proxies_on"and it is not working. I tried to get and set the pref as follows in the cookie code ( just as a test case ) and I am able to get and set values for "network.proxy.no_proxies_on". NS_WITH_SERVICE(nsIPref, prefs, "component://netscape/preferences", &rv); if (NS_FAILED(prefs->CopyCharPref("network.proxy.no_proxies_on", &charVal))) { prefs->SetCharPref("network.proxy.no_proxies_on", "test"); } else { prefs->SetCharPref("network.proxy.no_proxies_on", "test1"); } Thanks, Neeti
Status: NEW → ASSIGNED
Hmm... As soon as the tree opens I will checkin my code and here is where you can then find it- mozilla/netwerk/protocol/http/src/nsHTTPHandler.cpp function- nsHTTPHandler::PrefsChanged() and you will see the code that is similar to your test code.
ok, I will wait for you to checkin to look at this. Is the function nsHTTPHandler::PrefsChanged() being called? Are you able to get the pref service? Neeti
Yes right in that same function I also read network.proxy.http and everything works fine.
Gagan, What steps do I have to do to trigger nsHTTPHandler::PrefsChanged()to be called? Neeti
Gagan, I stepped through the following code in nsHTTPHandler::PrefsChanged() if (bChangedAll || !PL_strcmp(pref, "network.proxy.no_proxies_on")) { nsXPIDLCString noProxy; rv = mPrefs->CopyCharPref("network.proxy.no_proxies_on", getter_Copies(noProxy)); if (NS_SUCCEEDED(rv)) { rv = mPrefs->SetCharPref("network.proxy.no_proxies_on", "test1"); SetDontUseProxyFor(noProxy); } } and I am able to get and set values for "network.proxy.no_proxies_on". Neeti
Neeti: couple of observations- one is that the xul file has incorrect pref which reads network.proxy.none which should be network.proxy.no_proxies_on. secondly as we noticed on your machine setting it from the function and reading it seems to work just fine... but just reading it seems to fail (as its being used) Let me know if you need to see it on my machine.
Changing the preftype from int to string, preftype="string", and changing the prefstring to prefstring="network.proxy.no_proxies_on" from prefstring="network.proxy.none" in pref-proxies.xul, I can get and set network.proxy.no_proxies_on prefs from the pref window. Reassigning this to Matt for now, since changes needed are in the xul file. I have attached the diff, which makes getting and setting this pref from the pref window work. Index: resources/content/pref-proxies.xul =================================================================== RCS file: /cvsroot/mozilla/xpfe/components/prefwindow/resources/content/pref-proxies.xul,v retrieving revision 1.18 diff -c -r1.18 pref-proxies.xul *** pref-proxies.xul 2000/01/08 12:53:56 1.18 --- pref-proxies.xul 2000/02/12 05:07:11 *************** *** 94,100 **** <html:td>&noproxy.label;</html:td> <html:td> <html:input name="noproxy" type="text" id="networkProxyNone" ! pref="true" preftype="int" prefstring="network.proxy.none" size="20"/> </html:td> </html:tr> </html:table> --- 94,100 ---- <html:td>&noproxy.label;</html:td> <html:td> <html:input name="noproxy" type="text" id="networkProxyNone" ! pref="true" preftype="string" prefstring="network.proxy.no_proxies_on" size="20"/> </html:td> </html:tr> </html:table> Neeti
Assignee: neeti → matt
Status: ASSIGNED → NEW
Ugh, guess we have to do this now that they work.
Target Milestone: M14
Bulk move of all Pref UI component bugs to new Preferences component. Pref UI component will be deleted.
Component: Pref UI → Preferences
*** Bug 27585 has been marked as a duplicate of this bug. ***
fixed
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
tried testing using linux comm bits [2000021609]. maybe i'm misunderstanding how to verify this from my end, but when i check my prefs.js, i notice that i don't have any lines referring to "network.proxy.no_proxies_on". when checking the the Preferences dialog under Advanced > Proxies, i have "Direct connectin to the Internet" select, which makes me think that that pref would be in my prefs.js. but perhaps not there? anyhow, when i do change the radio button in that panel, i do get something writting to prefs.js containing "network.proxy.type" --which i presume is expected. however, i'd expect something to be written when i switch back to having a direct 'net connection... changing qa contact to tever, in case he has better understanding on how to verify... but do let me know if this should actually be reopened!
QA Contact: sairuh → tever
Status: RESOLVED → VERIFIED
this works ok now... marking verified since I opened this bug.
Summary: no_proxies_on pref is not being written/read → network.proxy.no_proxies_on pref is not being written/read
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.