B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * store all hosts for a URL
   * @param aWindow
   *        Window reference
   */
store all hosts for a URL
@param aWindow
Window reference
store all hosts for a URL @param aWindow Window reference
function ssi_updateCookieHosts(aWindow) {
    var hosts = this._internalWindows[aWindow.__SSi].hosts = {};
    for (let i = 0; i < aWindow.gBrowser.tabs.length; i++) {
      let tab = aWindow.gBrowser.tabs[i];
      let hostSchemeData = tab.linkedBrowser.__SS_hostSchemeData || [];
      for (let j = 0; j < hostSchemeData.length; j++) {
        this._extractHostsForCookiesFromHostScheme(hostSchemeData[j].host,
                                                   hostSchemeData[j].scheme,
                                                   hosts, true, tab.pinned);
      }
    }
  }
function ssi_updateCookieHosts ( aWindow ) { var hosts = this . _internalWindows [ aWindow . __SSi ] . hosts = { } ; for ( let i = 0 ; i < aWindow . gBrowser . tabs . length ; i ++ ) { let tab = aWindow . gBrowser . tabs [ i ] ; let hostSchemeData = tab . linkedBrowser . __SS_hostSchemeData || [ ] ; for ( let j = 0 ; j < hostSchemeData . length ; j ++ ) { this . _extractHostsForCookiesFromHostScheme ( hostSchemeData [ j ] . host , hostSchemeData [ j ] . scheme , hosts , true , tab . pinned ) ; } } }
store all hosts for a URL
 @param aWindow
        Window reference
store all hosts for a URL @param aWindow Window reference
// Since _updateCookiesHosts is only ever called for open windows during a // session, we can call into _extractHostsForCookiesFromHostScheme directly // using data that is attached to each browser.