Followup to bug 551049 - make the closing reason match that used by the in-process host
authorBenjamin Smedberg <benjamin@smedbergs.us>
Thu, 11 Mar 2010 14:15:48 -0500
changeset 39291 80a41fb9b523add4640105fa7d5243789e711234
parent 39290 7b2b19c142c2823484075adc0e70ca3bc8540bdf
child 39292 e68368ef5c042d80c186e90e0a2a0ca7c16d5980
push id12120
push userbsmedberg@mozilla.com
push dateThu, 11 Mar 2010 19:15:02 +0000
treeherdermozilla-central@80a41fb9b523 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs551049
milestone1.9.3a3pre
Followup to bug 551049 - make the closing reason match that used by the in-process host
dom/plugins/BrowserStreamChild.h
--- a/dom/plugins/BrowserStreamChild.h
+++ b/dom/plugins/BrowserStreamChild.h
@@ -107,17 +107,17 @@ public:
 
     mInstanceDying = true;
     return true;
   }
 
   void FinishDelivery() {
     NS_ASSERTION(mInstanceDying, "Should only be called after InstanceDying");
     NS_ASSERTION(DELETING != mState, "InstanceDying didn't work?");
-    mStreamStatus = NPRES_NETWORK_ERR;
+    mStreamStatus = NPRES_USER_BREAK;
     Deliver();
     NS_ASSERTION(!mStreamNotify, "Didn't deliver NPN_URLNotify?");
   }
 
 private:
   friend class StreamNotifyChild;
   using PBrowserStreamChild::SendNPN_DestroyStream;