rem: aWindows.forEach(function(aWindow) { if (aWindow._hosts && aWindow._hosts[cookie.rawHost]) {  if (!url) { var url = "http" + (cookie.isSecure ? "s" : "") + ": if (_this._checkPrivacyLevel(cookie.isSecure)) { value = (cookie.name || "name") + "=" + (cookie.value || "") + ";"; value += cookie.isDomain ? "domain=" + cookie.rawHost + ";" : ""; value += cookie.path ? "path=" + cookie.path + ";" : ""; value += cookie.isSecure ? "secure;" : ""; } } if (value) {   var cookies = aWindow.cookies; cookies["domain" + ++cookies.count] = url; cookies["value" + cookies.count] = value; } } }); 
add: this._forEachBrowserWindow(function(aWindow) { if (aWindow != window) { aWindow.close(); } }); 
context:         aWindows.forEach(function(aWindow) {          if (aWindow._hosts && aWindow._hosts[cookie.rawHost]) {            // make sure to construct URL and value only once per cookie            if (!url) {              var url = "http" + (cookie.isSecure ? "s" : "") + "://" + cookie.host + (cookie.path || "").replace(/^(?!\/)/, "/");              if (_this._checkPrivacyLevel(cookie.isSecure)) {                value = (cookie.name || "name") + "=" + (cookie.value || "") + ";";                value += cookie.isDomain ? "domain=" + cookie.rawHost + ";" : "";                value += cookie.path ? "path=" + cookie.path + ";" : "";                value += cookie.isSecure ? "secure;" : "";              }            }            if (value) {              // in order to not unnecessarily bloat the session file,              // all window cookies are saved into one JS object              var cookies = aWindow.cookies;              cookies["domain" + ++cookies.count] = url;              cookies["value" + cookies.count] = value;            }          }        });
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/9f0142082b3ed36124625c0e1f3978160ac5bd37/nsSessionStore.js/clean/browser/components/sessionstore/src/nsSessionStore.js