From 8f9ddde441512634fb183e04bd4476ec67dcba45 Mon Sep 17 00:00:00 2001 From: "gagan%netscape.com" Date: Mon, 18 Jun 2001 21:26:16 +0000 Subject: [PATCH] Fix for bug 72805. r=darin, sr=dougt, a=asa. No longer displaying the "Resolving..." message for IP addresses (and additionally for cached/resolved cases). This should now reduce the number of "Resolving hostname" events (and hence flashing status messages) on page loads as well. --- netwerk/base/src/nsSocketTransport.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/netwerk/base/src/nsSocketTransport.cpp b/netwerk/base/src/nsSocketTransport.cpp index e40c1963074..07cb9c23440 100644 --- a/netwerk/base/src/nsSocketTransport.cpp +++ b/netwerk/base/src/nsSocketTransport.cpp @@ -456,9 +456,11 @@ nsresult nsSocketTransport::Process(PRInt16 aSelectFlags) LOG(("nsSocketTransport: Transport [host=%s:%d this=%x] is in WaitDNS state.\n", mHostName, mPort, this)); mStatus = doResolveHost(); - // Send status message - OnStatus(NS_NET_STATUS_RESOLVING_HOST); + // only send a status if doResolveHost is going to do some + // resolution + if (mStatus != NS_OK) + OnStatus(NS_NET_STATUS_RESOLVING_HOST); break; case eSocketState_WaitConnect: