[icedtea-web] RFC: make browser proxy less noisy

Deepak Bhole dbhole at redhat.com
Thu Feb 3 23:51:11 PST 2011


* Omair Majid <omajid at redhat.com> [2011-02-04 08:37]:
> Hi,
> 
> The attached patch makes netx's firefox integration print fewer
> messages on stdout/err. The messages refer to missing things that
> were not implemented before, so not informing the user about it isnt
> a regression.
> 
> Thoughts?
> 

Most users probably won't know what it means and it might alarm them
unnecessarily. It is probably best to keep it silent.

Patch looks good to me, okay for HEAD after adding ChangeLog entry.

Thanks,
Deepak

> Cheers,
> Omair

> diff -r 97f40ebebbdf netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java
> --- a/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java	Tue Feb 01 10:53:44 2011 -0500
> +++ b/netx/net/sourceforge/jnlp/browser/BrowserAwareProxySelector.java	Fri Feb 04 02:28:17 2011 -0500
> @@ -120,7 +120,10 @@
>          }
>  
>          try {
> -            browserAutoConfigUrl = new URL(prefs.get("network.proxy.autoconfig_url"));
> +            String url = prefs.get("network.proxy.autoconfig_url");
> +            if (url != null) {
> +                browserAutoConfigUrl = new URL(url);
> +            }
>          } catch (MalformedURLException e) {
>              e.printStackTrace();
>          }
> @@ -195,7 +198,9 @@
>                  if (optionDescription == null) {
>                      optionDescription = "Unknown";
>                  }
> -                System.err.println(R("RProxyFirefoxOptionNotImplemented", browserProxyType, optionDescription));
> +                if (JNLPRuntime.isDebug()) {
> +                    System.err.println(R("RProxyFirefoxOptionNotImplemented", browserProxyType, optionDescription));
> +                }
>                  proxies.add(Proxy.NO_PROXY);
>          }
>  




More information about the distro-pkg-dev mailing list