Commit 2fc24536 authored by sdwilsh@shawnwilsher.com's avatar sdwilsh@shawnwilsher.com
Browse files

Bug 400543 - Add TRANSITION_DOWNLOAD. r=mano, a=schrep

parent e09d7f5f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1199,6 +1199,11 @@ interface nsINavHistoryService : nsISupports
   */
  const unsigned long TRANSITION_REDIRECT_TEMPORARY = 6;

  /**
   * Set when the transition is a download.
   */
  const unsigned long TRANSITION_DOWNLOAD = 7;

  /**
   * True if there is any history. This can be used in UI to determine whether
   * the "clear history" button should be enabled or not. This is much better
+3 −2
Original line number Diff line number Diff line
@@ -1960,9 +1960,10 @@ nsNavHistory::AddVisit(nsIURI* aURI, PRTime aTime, PRInt64 aReferringVisit,
    mDBGetPageVisitStats->Reset();
    scoper.Abandon();

    // hide embedded links and redirects, everything else is visible,
    // Hide only embedded links, redirects, and downloads
    // See the hidden computation code above for a little more explanation.
    hidden = (aTransitionType == TRANSITION_EMBED || aIsRedirect);
    hidden = (aTransitionType == TRANSITION_EMBED || aIsRedirect ||
              aTransitionType == TRANSITION_DOWNLOAD);

    typed = (aTransitionType == TRANSITION_TYPED);