rem: alert : function(title, text) { if (this.alerts) this.alerts.showAlertNotification("chrome: else { (!this.timer && (this.timer = CC["@mozilla.org/timer;1"].createInstance(CI.nsITimer))); this.timer.cancel(); var wm = CC["@mozilla.org/appshell/window-mediator;1"].getService(CI.nsIWindowMediator); var win = wm.getMostRecentWindow("navigator:browser"); try { var doc = win.parent.document; this.tooltip = doc.getElementById("foxyproxy-popup"); this._removeChildren(this.tooltip); var grid = doc.createElement("grid"); grid.setAttribute("flex", "1"); this.tooltip.appendChild(grid);  var columns = doc.createElement("columns"); columns.appendChild(doc.createElement("column")); grid.appendChild(columns);  var rows = doc.createElement("rows"); grid.appendChild(rows); this._makeHeaderRow(doc, title, rows); this._makeRow(doc, "", rows); this._makeRow(doc, text, rows); this.tooltip.showPopup(doc.getElementById("status-bar"), -1, -1, "tooltip", "topright","bottomright"); this.timer.initWithCallback(this, 5000, CI.nsITimer.TYPE_ONE_SHOT); } catch (e) { dump(e);/* in case win, win.parent, win.parent.document, tooltip, etc. don't exist */ gFP.alert(null, text);} } }, 
add: alert : function(wnd, str) { CC["@mozilla.org/embedcomp/prompt-service;1"].getService(CI.nsIPromptService) .alert(null, this.getMessage("foxyproxy"), str); }, 
context:     alert : function(title, text) {         if (this.alerts)        this.alerts.showAlertNotification("chrome://foxyproxy/content/images/foxyproxy-nocopy.gif", title, text, false, "", null);      else {      	(!this.timer && (this.timer = CC["@mozilla.org/timer;1"].createInstance(CI.nsITimer)));      	this.timer.cancel();		    var wm = CC["@mozilla.org/appshell/window-mediator;1"].getService(CI.nsIWindowMediator);		    var win = wm.getMostRecentWindow("navigator:browser");		    try {			    var doc = win.parent.document;	      	        this.tooltip = doc.getElementById("foxyproxy-popup");	        this._removeChildren(this.tooltip);	    		var grid = doc.createElement("grid");	    		grid.setAttribute("flex", "1");	    		this.tooltip.appendChild(grid);	    	    		var columns = doc.createElement("columns");	    		columns.appendChild(doc.createElement("column")); 			    		grid.appendChild(columns);	    	    		var rows = doc.createElement("rows");	    		grid.appendChild(rows);	        this._makeHeaderRow(doc, title, rows);	        this._makeRow(doc, "", rows);	        this._makeRow(doc, text, rows);	        this.tooltip.showPopup(doc.getElementById("status-bar"), -1, -1, "tooltip", "topright","bottomright");					this.timer.initWithCallback(this, 5000, CI.nsITimer.TYPE_ONE_SHOT);				        	      }	      catch (e) { dump(e);/* in case win, win.parent, win.parent.document, tooltip, etc. don't exist */ gFP.alert(null, text);}      }    },
meta: 3800	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3800/761da829d9c84354af8e76fe32d21f19cbf76ffc/foxyproxy.js/buggy/src/components/foxyproxy.js