B2G/gecko/browser/components/sessionstore/src/SessionStore.jsm
/**
   * Determine if the tab state we're passed is something we should save. This
   * is used when closing a tab or closing a window with a single tab
   *
   * @param aTabState
   *        The current tab state
   * @returns boolean
   */
Determine if the tab state we're passed is something we should save. This
is used when closing a tab or closing a window with a single tab

@param aTabState
The current tab state
@returns boolean
Determine if the tab state we ' re passed is something we should save . This is used when closing a tab or closing a window with a single tab @param aTabState The current tab state @returns boolean
function ssi_shouldSaveTabState(aTabState) {
    return aTabState.entries.length &&
           !(aTabState.entries.length == 1 &&
             aTabState.entries[0].url == "about:blank" &&
             !aTabState.userTypedValue);
  }
function ssi_shouldSaveTabState ( aTabState ) { return aTabState . entries . length && ! ( aTabState . entries . length == 1 && aTabState . entries [ 0 ] . url == "about:blank" && ! aTabState . userTypedValue ) ; }
Determine if the tab state we're passed is something we should save.
Determine if the tab state we ' re passed is something we should save .
// If the tab has only the transient about:blank history entry, no other // session history, and no userTypedValue, then we don't actually want to // store this tab's data.