зеркало из https://github.com/mozilla/pjs.git
203053 - crash on download. Didn't get quite all the changes from the trunk necessary. (Checking in bz's patch to http://bugzilla.mozilla.org/show_bug.cgi?id=188877 )
This commit is contained in:
Родитель
064ff5e88d
Коммит
b863e58549
|
@ -1018,6 +1018,12 @@ nsDownload::OnStateChange(nsIWebProgress* aWebProgress,
|
|||
if (aStateFlags & STATE_START)
|
||||
mStartTime = PR_Now();
|
||||
|
||||
// When we break the ref cycle with mPersist, we don't want to lose
|
||||
// access to out member vars!
|
||||
nsCOMPtr<nsIDownload> kungFuDeathGrip;
|
||||
CallQueryInterface(this, NS_STATIC_CAST(nsIDownload**,
|
||||
getter_AddRefs(kungFuDeathGrip)));
|
||||
|
||||
if (mListener)
|
||||
mListener->OnStateChange(aWebProgress, aRequest, aStateFlags, aStatus);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче