this.tabWatcher_ = tabWatcher; this.onTabSwitchCallback_ = BindToObject(this.onTabSwitch, this); this.tabWatcher_.registerListener("tabswitch", this.onTabSwitchCallback_); 
this.tabBrowser_ = tabBrowser; this.onTabSwitchClosure_ = BindToObject(this.onTabSwitch, this); this.tabBrowser_.mTabBox.addEventListener("select", this.onTabSwitchClosure_, true); 
function PROT_Controller(win, tabWatcher, phishingWarden) {  this.debugZone = "controller";  this.win_ = win;  this.phishingWarden_ = phishingWarden;  // Use this to query preferences  this.prefs_ = new G_Preferences();  // Set us up to receive the events we want.  this.tabWatcher_ = tabWatcher;  this.onTabSwitchCallback_ = BindToObject(this.onTabSwitch, this);  this.tabWatcher_.registerListener("tabswitch",                                    this.onTabSwitchCallback_);  // Install our command controllers. These commands are issued from  // various places in our UI, including our preferences dialog, the  // warning dialog, etc.  var commandHandlers = {     "safebrowsing-show-warning" :      BindToObject(this.onUserShowWarning, this),    "safebrowsing-accept-warning" :      BindToObject(this.onUserAcceptWarning, this),    "safebrowsing-decline-warning" :      BindToObject(this.onUserDeclineWarning, this),  };  this.commandController_ = new PROT_CommandController(commandHandlers);  this.win_.controllers.appendController(this.commandController_);  // This guy embodies the logic of when to display warnings  // (displayers embody the how).  this.browserView_ = new PROT_BrowserView(this.tabWatcher_,                                            this.win_.document);  // We need to let the phishing warden know about this browser view so it   // can be given the opportunity to handle problem documents. We also need  // to let the warden know when this window and hence this browser view  // is going away.  this.phishingWarden_.addBrowserView(this.browserView_);  this.windowWatcher_ =     Components.classes["@mozilla.org/embedcomp/window-watcher;1"]    .getService(Components.interfaces.nsIWindowWatcher);  G_Debug(this, "Controller initialized.");}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/c153be75a2d4afc2cdc265dbede0ab523a3a8c5e/controller.js/buggy/browser/components/safebrowsing/content/controller.js