зеркало из https://github.com/mozilla/gecko-dev.git
Changed OnStopRequest(...) to always file - regardless of the mStatus. This insures that the consumer will *always* receive an OnStopRequest(...) notification.
This commit is contained in:
Родитель
49b6034fdb
Коммит
3aed16e4b8
|
@ -278,9 +278,12 @@ nsAsyncStreamObserver::OnStopRequest(nsIChannel* channel, nsISupports* context,
|
|||
nsresult aStatus,
|
||||
const PRUnichar* aMsg)
|
||||
{
|
||||
nsresult rv = GetStatus();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
nsresult rv;
|
||||
|
||||
//
|
||||
// Fire the OnStopRequest(...) regardless of what the current
|
||||
// Status is...
|
||||
//
|
||||
nsOnStopRequestEvent* event =
|
||||
new nsOnStopRequestEvent(this, context, channel);
|
||||
if (event == nsnull)
|
||||
|
|
Загрузка…
Ссылка в новой задаче