var appinfo = Components.classes["@mozilla.org/xre/app-info;1"] 
var appinfo = Components.classes["@mozilla.org/xre/app-info;1"] 
	populate: function() {		var appinfo = Components.classes["@mozilla.org/xre/app-info;1"]                        .getService(Components.interfaces.nsIXULAppInfo);                                // build id:  		this.buildid = appinfo.appBuildID;		if (! this.buildid) { throw "buildid" }                // product:        if (! this.product) {        	if (appinfo.ID == FIREFOX_ID) {        		this.product = 'Firefox';        	}        	if (! this.product) { throw "product" }        }                // branch:        // people switch branches, so we detect this even though it might         // already be set in a pref		if ((/^3\.0/).exec(appinfo.version)) {			this.branch = '3.0 Branch';		} else if ((/^2\.0/).exec(appinfo.version)) {			this.branch = '2.0 Branch';		} else if ((/^1\.5\./).exec(appinfo.version)) {			this.branch = '1.5 Branch';		}		if (! this.branch) { throw "branch" }			        // platform:        if (! this.platform) {			if ((/^MacPPC/).exec(navigator.platform)) {				this.platform = 'Mac (PPC)';			} else if ((/^MacIntel/).exec(navigator.platform)) {				this.platform = 'Mac (Intel)';			} else if ((/^Win/).exec(navigator.platform)) {				this.platform = 'Windows';			} else if ((/^Linux/).exec(navigator.platform)) {				this.platform = 'Linux';			} else if ((/^Solaris/).exec(navigator.platform)) {				this.platform = 'Solaris';			}			if (! this.platform) { throw "platform" }        }        // opsys        if (this.platform == 'Windows') {        	switch (navigator.oscpu) {        		case 'Windows NT 5.1':        			this.opsys = 'Windows XP';        			break;        		case 'Windows NT 5.2':        			this.opsys = 'Windows XP';        			break;        		case 'Windows NT 6.0':        			this.opsys = 'Windows Vista';        			break;        		case 'Windows NT 5.0':        			this.opsys = 'Windows 2000';        			break;        		case 'Win 9x 4.90':        			this.opsys = 'Windows ME';        			break;        		case 'Win98':        			this.opsys = 'Windows 98';        			break;        	}        } else if (this.platform == 'Linux') {        	this.opsys = 'Linux';        } else if (this.platform == 'Mac (PPC)' || this.platform == 'Mac (Intel)') {        	// no way to detect the OS on mac, so just assume         	// it's 10.4. The user can provide the real OS in setup        	this.opsys = 'Mac OS 10.4';        }        if (! this.opsys) {throw "opsys" }                // locale		this.locale = navigator.language;		if (!this.locale) { throw "locale" }	},
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/a3a9a2c311afc9d76e4e6bfc036e5897fa988bc1/litmus.js/buggy/testing/extensions/community/chrome/content/litmus.js