зеркало из https://github.com/mozilla/pjs.git
Fixes: 19167,16801,17282,17682,17690,18616 Yes, this one line fix closes
all of these bugs and has taken 40 some hours to find. Good night.
This commit is contained in:
Родитель
3bf1765e27
Коммит
365b2789ad
|
@ -780,12 +780,13 @@ nsresult nsHTTPChannel::ResponseCompleted(nsIChannel* aTransport,
|
|||
|
||||
PRBool bPropogateOnStop = PR_TRUE;
|
||||
|
||||
// Don't fire OnStops for redirects-- confuses imagelib. See #17393
|
||||
// Don't fire OnStops for redirects -- confuses imagelib. See #17393
|
||||
if (mResponse && (aStatus == NS_OK))
|
||||
{
|
||||
PRUint32 resp;
|
||||
mResponse->GetStatus(&resp);
|
||||
if (3 == (int)(resp/100)) // 3* is the redirects
|
||||
// 3* is the redirects. A 401 error will also confuse imagelib.
|
||||
if (3 == (int)(resp/100) || 401 == resp)
|
||||
bPropogateOnStop = PR_FALSE;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче