rem:     host.value = "localhost"; port.value = 4444; type.value = "http"; 
add: if (proxy == "DIRECT") { host.value = null; type.value = "direct"; } else {      var re = /PROXY (.+):(\d+);.*/; hostport = proxy.match(re); host.value = hostport[1]; port.value = hostport[2]; type.value = "http"; } 
context:     ProxyForURL: function(url, host, port, type) {        uri = url.QueryInterface(Components.interfaces.nsIURI);        // Call the original function-        var proxy = FindProxyForURL(uri.spec, uri.host);        debug("Proxy = " + proxy);        // TODO add code here that parses stupid PAC return strings        // to host and port pair...         // TODO warn about SOCKS        // test dummy for now...        host.value = "localhost";        port.value = 4444;		type.value = "http"; //proxy (http, socks, direct, etc)    }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/01e3f7007e4bfc370c385c04821c5c21fb63d151/nsProxyAutoConfig.js/buggy/netwerk/base/src/nsProxyAutoConfig.js