зеркало из https://github.com/mozilla/pjs.git
Bug 381784 - nsDownload::SetState should assert if the new state is the same as the old state. r=mano
This commit is contained in:
Родитель
a6dc8d82cd
Коммит
e74ea1012d
|
@ -1164,8 +1164,8 @@ nsDownload::~nsDownload()
|
|||
nsresult
|
||||
nsDownload::SetState(DownloadState aState)
|
||||
{
|
||||
if (mDownloadState == aState)
|
||||
return NS_OK;
|
||||
NS_ASSERTION(mDownloadState != aState,
|
||||
"Trying to set the download state to what it already is set to!");
|
||||
|
||||
PRInt16 oldState = mDownloadState;
|
||||
mDownloadState = aState;
|
||||
|
|
Загрузка…
Ссылка в новой задаче