add:  var typehostport = /^\s*(\w+)\s+([^:]+)(:\d+)?/(proxy); if(typehostport != null) { host.value = typehostport[2]; typehostport[1] = typehostport[1].toUpperCase(); 
context:     ProxyForURL: function(url, host, port, type) {        /* If we're not done loading the pac yet, wait (ideally). For           now, just return DIRECT to avoid loops. A simple mutex           between ProxyForURL and LoadPACFromURL locks-up the           browser. */        if (!this.done) {            host.value = null;            type.value = "direct";            return;        }        var uri = url.QueryInterface(Components.interfaces.nsIURI);        // Call the original function-        var proxy = LocalFindProxyForURL(uri.spec, uri.host);        if (proxy == "DIRECT") {            host.value = null;            type.value = "direct";        }        else {            // TODO warn about SOCKS            // we ignore everything else past the first proxy.             // we could theoretically check isResolvable now and continue             // parsing. but for now...            var hostport = /^PROXY ([^:]+):(\d+)/(proxy);            host.value = hostport[1];            port.value = hostport[2];            type.value = "http"; //proxy (http, socks, direct, etc)        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/527624dbcb30ffee71abb68910a63d51053a6434/nsProxyAutoConfig.js/clean/netwerk/base/src/nsProxyAutoConfig.js