B2G/gecko/browser/components/tabview/storage.js
// Load tab data from session store and return it.
Load tab data from session store and return it.
Load tab data from session store and return it .
function Storage_getTabData(tab) {
    Utils.assert(tab, "tab");
    let existingData = null;
    try {
      let tabData = this._sessionStore.getTabValue(tab, this.TAB_DATA_IDENTIFIER);
      if (tabData != "")
        existingData = JSON.parse(tabData);
    } catch (e) {
      Utils.log(e);
    }
    return existingData;
  }
function Storage_getTabData ( tab ) { Utils . assert ( tab , "tab" ) ; let existingData = null ; try { let tabData = this . _sessionStore . getTabValue ( tab , this . TAB_DATA_IDENTIFIER ) ; if ( tabData != "" ) existingData = JSON . parse ( tabData ) ; } catch ( e ) { Utils . log ( e ) ; } return existingData ; }
Load tab data from session store and return it.
Load tab data from session store and return it .
// getTabValue will fail if the property doesn't exist.