mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 106533. Active Accessibility: Assert on startup in timer code. r=evaughan, sr=waterson
This commit is contained in:
parent
4cdecde266
commit
deeb2568c9
@ -212,11 +212,12 @@ void nsRootAccessible::Notify(nsITimer *timer)
|
||||
NS_IMETHODIMP nsRootAccessible::StartDocReadyTimer()
|
||||
{
|
||||
nsresult rv;
|
||||
if (!mTimer)
|
||||
if (!mTimer) {
|
||||
mTimer = do_CreateInstance("@mozilla.org/timer;1", &rv);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
const PRUint32 kUpdateTimerDelay = 1;
|
||||
rv = mTimer->Init(NS_STATIC_CAST(nsITimerCallback*, this), kUpdateTimerDelay);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
const PRUint32 kUpdateTimerDelay = 1;
|
||||
rv = mTimer->Init(NS_STATIC_CAST(nsITimerCallback*, this), kUpdateTimerDelay);
|
||||
}
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
@ -212,11 +212,12 @@ void nsRootAccessible::Notify(nsITimer *timer)
|
||||
NS_IMETHODIMP nsRootAccessible::StartDocReadyTimer()
|
||||
{
|
||||
nsresult rv;
|
||||
if (!mTimer)
|
||||
if (!mTimer) {
|
||||
mTimer = do_CreateInstance("@mozilla.org/timer;1", &rv);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
const PRUint32 kUpdateTimerDelay = 1;
|
||||
rv = mTimer->Init(NS_STATIC_CAST(nsITimerCallback*, this), kUpdateTimerDelay);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
const PRUint32 kUpdateTimerDelay = 1;
|
||||
rv = mTimer->Init(NS_STATIC_CAST(nsITimerCallback*, this), kUpdateTimerDelay);
|
||||
}
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
Loading…
Reference in New Issue
Block a user