rem: this.addCache(topContentWindow, browser); return browser; 
add: this.addCache(topContentWindow, b); return b; 
context:   getBrowserForContentWindow: function(topContentWindow) {      if(topContentWindow instanceof Components.interfaces.nsIDOMChromeWindow) {          if(topContentWindow.browserDOMWindow) {              this.logger.log(3, "Chrome browser found: "                      +topContentWindow.location);              return topContentWindow.getBrowser().selectedTab.linkedBrowser;          }          // Allow strange chrome to go through..          this.logger.log(3, "Odd chome window"+topContentWindow.location);          return topContentWindow;      }      var cached = this.checkCache(topContentWindow);      if(cached != null) return cached;      var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]          .getService(Components.interfaces.nsIWindowMediator);      var enumerator = wm.getEnumerator("navigator:browser");      while(enumerator.hasMoreElements()) {          var win = enumerator.getNext();          var browser = win.getBrowser();           for (var i = 0; i < browser.browsers.length; ++i) {              var b = browser.browsers[i];              if (b && b.contentWindow == topContentWindow) {                  this.addCache(topContentWindow, browser);                  return browser;              }          }      }      if(topContentWindow && topContentWindow.location)          this.logger.log(5, "No browser found: "+topContentWindow.location);      else          this.logger.log(5, "No browser found!");      return null;  }
meta: 3444	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3444/075ae96be6f07cf1e4bf5bced6ef7911350096f3/window-mapper.js/clean/src/components/window-mapper.js