Bug 789846: Ensure that we unblock unload if we're only pretending that the request finished. r=joe a=lsblakk
authorKyle Huey <khuey@kylehuey.com>
Tue, 09 Oct 2012 09:47:14 -0700
changeset 113305 97a3487c3b5152e18742d582b8d61260d593c24e
parent 113304 31ecdc024188a380d01cf6472e35286e6b09511c
child 113306 d5cf98031f8d015394ee681a9797b5c913489630
push id2274
push userkhuey@mozilla.com
push dateThu, 11 Oct 2012 18:50:30 +0000
treeherdermozilla-aurora@97a3487c3b51 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjoe, lsblakk
bugs789846
milestone18.0a2
Bug 789846: Ensure that we unblock unload if we're only pretending that the request finished. r=joe a=lsblakk
image/src/imgStatusTracker.cpp
--- a/image/src/imgStatusTracker.cpp
+++ b/image/src/imgStatusTracker.cpp
@@ -261,16 +261,20 @@ imgStatusTracker::EmulateRequestFinished
       aProxy->OnStopContainer(mImage);
     }
 
     if (!(mState & stateRequestStopped)) {
       aProxy->OnStopDecode(aStatus, nullptr);
     }
   }
 
+  if (mState & stateBlockingOnload) {
+    aProxy->UnblockOnload();
+  }
+
   if (!(mState & stateRequestStopped)) {
     aProxy->OnStopRequest(true);
   }
 }
 
 void
 imgStatusTracker::RecordCancel()
 {