diff --git a/dom/base/nsGlobalWindow.h b/dom/base/nsGlobalWindow.h index f2b1fe6fc1bc..c928040bf0e8 100644 --- a/dom/base/nsGlobalWindow.h +++ b/dom/base/nsGlobalWindow.h @@ -147,9 +147,9 @@ struct nsTimeout : mozilla::LinkedListElement nsrefcnt Release(); nsrefcnt AddRef(); - nsresult InitTimer(nsTimerCallbackFunc aFunc, uint64_t delay) { - return mTimer->InitWithFuncCallback(aFunc, this, - static_cast(delay), + nsresult InitTimer(nsTimerCallbackFunc aFunc, uint32_t aDelay) + { + return mTimer->InitWithFuncCallback(aFunc, this, aDelay, nsITimer::TYPE_ONE_SHOT); }