From 546ce73b41f9c92cf888650a06b7e42e0ce9064d Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Wed, 4 Jul 2018 12:43:19 -0700 Subject: [PATCH] #463: add elapsed and deadline tracking to nsTimeout --- dom/base/nsGlobalWindow.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom/base/nsGlobalWindow.h b/dom/base/nsGlobalWindow.h index 025b261fa..14c0b7dbe 100644 --- a/dom/base/nsGlobalWindow.h +++ b/dom/base/nsGlobalWindow.h @@ -215,6 +215,11 @@ public: // If there is an IdleRequestCallback, this is requestIdleCallback (issue 463). nsCOMPtr mScriptHandler; RefPtr mCallback; + + // These members are only valid when this is a idle callback + // (TenFourFox issue 463). + uint32_t mElapsed; + uint32_t mDeadline; }; struct IdleObserverHolder