Bug 911889. Part 4. Add API to detect whether an nsGlobalWindow is running a timeout handler. r=bz

--HG--
extra : rebase_source : 17eabb4f819748ab9ec0ef38681c28df7b0a1861
This commit is contained in:
Robert O'Callahan 2013-09-04 23:37:46 +12:00
parent 05b58a7e00
commit 2f979dbeb4
2 changed files with 3 additions and 0 deletions

View File

@ -434,6 +434,7 @@ public:
{
return mIsFrozen;
}
virtual NS_HIDDEN_(bool) IsRunningTimeout() { return mTimeoutFiringDepth > 0; }
virtual NS_HIDDEN_(bool) WouldReuseInnerWindow(nsIDocument *aNewDocument);

View File

@ -189,6 +189,8 @@ public:
return mDoc;
}
virtual NS_HIDDEN_(bool) IsRunningTimeout() = 0;
protected:
// Lazily instantiate an about:blank document if necessary, and if
// we have what it takes to do so.