rem: while (host.match(/\..*\./)) { 
add: while (-1!=host.indexOf('.')) { 
context: getURLs:function() {	var URLs=[], loc=getBrowser().contentWindow.location;	try {		//check for validity		if ('about:'==loc.protocol) return URLs;		//get the URL		var path=loc.href;		//strip off the scheme and host		path=path.replace(/^.*:\/\/[^\/]*\//, '');		//and the trailing slash if there		path=path.replace(/\/$/, '');		var host=loc.host;		var scheme=loc.protocol+'//';		var emptyPath=(''==path);		//strip hash if there		if (path.indexOf('#')>0) {			path=path.replace(/#.*/, '');			URLs[URLs.length]=scheme+host+'/'+path;		}		//strip querystring if there		if (path.indexOf('?')>0) {			path=path.replace(/\?.*/, '');			URLs[URLs.length]=scheme+host+'/'+path;		}		//strip files/directories if there		while (path.indexOf('/')>0) {			path=path.replace(/\/[^\/]*$/, '');			URLs[URLs.length]=scheme+host+'/'+path+'/';		}		//host only		if (!emptyPath) URLs[URLs.length]=scheme+host+'/';				//strip subdomains if there		if (!host.match(/([0-9]+\.)+/)) { // if it's not a numeric IP			var hostSuff=host.substr(host.length-6);			host=host.substr(0, host.length-6);			while (host.match(/\..*\./)) {				host=host.replace(/[^.]*\./, '');				URLs[URLs.length]=scheme+host+hostSuff+'/';			}		}	} catch (e) { this.dumpErr(e); }	return URLs;},
meta: 2321	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2321/9ae865018bf1d9da9fb341e3b866331eb6b1c51b/uppity.js/buggy/content/uppity.js