> Michael Epstein wrote:
> > Has anyone using the Mozilla Webclient Java interface to embedding tried
> > setting a proxy server via the org.mozilla.webclient.Preferences
interface?
>><---snip--->
> Jeet Shahani wrote:
> Mike,
>
> That should work..could be a bug.
>
> I can suggest a workaround, not sure if that will work in your case.
> How about changing these settings through java?  I mean using the System
> class instead?
>
> -Jeet

Is it possible to set Mozilla's proxy through Java's System properties? I
would have thought the only way to do this would be through calls to the
embedding API's preferences interface or perhaps calls somewhere in Necko.
What are the system properties Mozilla uses for its proxy settings?

Let me also assist with the hunt for this bug. Unfortunately, I know little
about C++ or even JNI, but the following code segment (located at
http://lxr.mozilla.org/mozilla/source/java/webclient/src_moz/PreferencesImpl
.cpp#70) struck me as suspicious. These lines are called when the proxy name
(network.proxy.http) preference is set fromWebclient):
     ::util_ReleaseStringUTFChars(env, prefName, prefNameChars);
     ::util_ReleaseStringChars(env, prefName, prefValueChars);

Note that in the second line the second argument is prefName, when it should
perhaps be prefValue. Webclient team: should I write this up as a bug? Does
this stand a chance of being corrected and rolled into a (hopefully
soon-to-be-released) next version of Webclient?

-Michael Epstein

Reply via email to