зеркало из https://github.com/mozilla/gecko-dev.git
fixing a regression. r=me.
This commit is contained in:
Родитель
a8f487ca8b
Коммит
e5bb030540
|
@ -266,13 +266,14 @@ nsBrowserStatusFilter::OnSecurityChange(nsIWebProgress *aWebProgress,
|
|||
nsresult
|
||||
nsBrowserStatusFilter::StartDelayTimer()
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
NS_ASSERTION(!DelayInEffect(), "delay should not be in effect");
|
||||
|
||||
mTimer = do_CreateInstance("@mozilla.org/timer;1");
|
||||
mTimer->InitWithFuncCallback(TimeoutHandler, this, 400,
|
||||
nsITimer::TYPE_ONE_SHOT);
|
||||
if (!mTimer)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
nsresult rv = mTimer->InitWithFuncCallback(TimeoutHandler, this, 400,
|
||||
nsITimer::TYPE_ONE_SHOT);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче