зеркало из https://github.com/mozilla/pjs.git
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.
This commit is contained in:
Родитель
a4535fb4c0
Коммит
8f9ddde441
|
@ -456,9 +456,11 @@ nsresult nsSocketTransport::Process(PRInt16 aSelectFlags)
|
||||||
LOG(("nsSocketTransport: Transport [host=%s:%d this=%x] is in WaitDNS state.\n",
|
LOG(("nsSocketTransport: Transport [host=%s:%d this=%x] is in WaitDNS state.\n",
|
||||||
mHostName, mPort, this));
|
mHostName, mPort, this));
|
||||||
mStatus = doResolveHost();
|
mStatus = doResolveHost();
|
||||||
|
|
||||||
// Send status message
|
// 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;
|
break;
|
||||||
|
|
||||||
case eSocketState_WaitConnect:
|
case eSocketState_WaitConnect:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче