Backed out Bug 662200. a=LegNeato
authorKyle Huey <khuey@kylehuey.com>
Wed, 10 Aug 2011 09:49:18 -0400
changeset 72770 5cf936e830cf1c99f7931e99c6d52bee5edfd055
parent 71018 580ddd2f126774228abb97938f7c04473197df75
child 72771 db65b6cd69e4d0dc1c628b1c5cabf5eb7963daac
push id301
push userkhuey@mozilla.com
push dateWed, 10 Aug 2011 13:52:09 +0000
treeherdermozilla-aurora@0bf3da55f665 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersLegNeato
bugs662200
milestone7.0a1
Backed out Bug 662200. a=LegNeato
docshell/base/nsDocShell.cpp
--- a/docshell/base/nsDocShell.cpp
+++ b/docshell/base/nsDocShell.cpp
@@ -9452,19 +9452,19 @@ nsDocShell::OnNewURI(nsIURI * aURI, nsIC
                 (void)NS_GetReferrerFromChannel(aChannel,
                                                 getter_AddRefs(referrer));
 
                 AddURIVisit(aURI, referrer, previousURI, previousFlags);
             }
         }
     }
 
-    // If this was a history load or a refresh,
-    // update the index in SH. 
-    if (rootSH && (mLoadType & (LOAD_CMD_HISTORY | LOAD_CMD_RELOAD))) {
+    // If this was a history load, update the index in 
+    // SH. 
+    if (rootSH && (mLoadType & LOAD_CMD_HISTORY)) {
         nsCOMPtr<nsISHistoryInternal> shInternal(do_QueryInterface(rootSH));
         if (shInternal) {
             rootSH->GetIndex(&mPreviousTransIndex);
             shInternal->UpdateIndex();
             rootSH->GetIndex(&mLoadedTransIndex);
 #ifdef DEBUG_PAGE_CACHE
             printf("Previous index: %d, Loaded index: %d\n\n",
                    mPreviousTransIndex, mLoadedTransIndex);