Bug 1400359 - Follow-up: Don't try to report NS_BINDING_ABORTED. r=me a=jorgk
authorJorg K <jorgk@jorgk.com>
Tue, 19 Sep 2017 01:22:09 +0200
changeset 28609 9ccf7f64ce420ef440989f27cf70e6769aee01d9
parent 28608 f26b00899997420bbb3ea06037a4487f4ce30de2
child 28610 958254c475a5fbbe93a8ad261d037a21deac9966
push idunknown
push userunknown
push dateunknown
reviewersme, jorgk
bugs1400359
Bug 1400359 - Follow-up: Don't try to report NS_BINDING_ABORTED. r=me a=jorgk
mailnews/local/src/nsPop3Protocol.cpp
--- a/mailnews/local/src/nsPop3Protocol.cpp
+++ b/mailnews/local/src/nsPop3Protocol.cpp
@@ -977,17 +977,17 @@ NS_IMETHODIMP nsPop3Protocol::OnStopRequ
     // which notifies the URLListeners, but we need to do a bit of cleanup
     // before running the url again.
     CloseSocket();
     if (m_loadGroup)
       m_loadGroup->RemoveRequest(static_cast<nsIRequest *>(this), nullptr, aStatus);
     m_pop3ConData->next_state = POP3_ERROR_DONE;
     ProcessProtocolState(nullptr, nullptr, 0, 0);
 
-    if (NS_FAILED(aStatus))
+    if (NS_FAILED(aStatus) && aStatus != NS_BINDING_ABORTED)
       nsMsgProtocol::ShowAlertMessage(msgUrl, aStatus);
 
     return NS_OK;
   }
   nsresult rv = nsMsgProtocol::OnStopRequest(aRequest, aContext, aStatus);
 
   // turn off the server busy flag on stop request - we know we're done, right?
   nsCOMPtr<nsIMsgIncomingServer> server = do_QueryInterface(m_pop3Server);