Bug 642551 followup to address review comment
☠☠ backed out by 7dd2deecd8f2 ☠ ☠
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 06 Sep 2011 23:04:45 -0400
changeset 76633 fc945dec50bb044858b48c22efd7dbc59f9deabd
parent 76632 64c328251a24e767893231306b311d81061cc12f
child 76634 d01a282b5a40da07d6f9d85d56eb3c6b6cb620c2
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
bugs642551
milestone9.0a1
Bug 642551 followup to address review comment
uriloader/base/nsDocLoader.cpp
--- a/uriloader/base/nsDocLoader.cpp
+++ b/uriloader/base/nsDocLoader.cpp
@@ -622,22 +622,20 @@ nsDocLoader::OnStopRequest(nsIRequest *a
   //
   // Set the Maximum progress to the same value as the current progress.
   // Since the URI has finished loading, all the data is there.  Also,
   // this will allow a more accurate estimation of the max progress (in case
   // the old value was unknown ie. -1)
   //
   nsRequestInfo *info = GetRequestInfo(aRequest);
   if (info) {
-    if (info->mLastStatus) {
-      // Null it out now so we don't find it when looking for status
-      // from now on.  This destroys the nsStatusInfo and hence
-      // removes it from our list.
-      info->mLastStatus = nsnull;
-    }
+    // Null out mLastStatus now so we don't find it when looking for
+    // status from now on.  This destroys the nsStatusInfo and hence
+    // removes it from our list.
+    info->mLastStatus = nsnull;
 
     PRInt64 oldMax = info->mMaxProgress;
 
     info->mMaxProgress = info->mCurrentProgress;
     
     //
     // If a request whose content-length was previously unknown has just
     // finished loading, then use this new data to try to calculate a