bug 371299 add a way to query if meta refreshes are pending for a docshell

r+sr=bz


git-svn-id: svn://10.0.0.236/trunk@220767 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cbiesinger%web.de
2007-02-22 22:11:30 +00:00
parent cab0561311
commit 56a61985cf
2 changed files with 21 additions and 1 deletions

View File

@@ -4538,6 +4538,21 @@ nsDocShell::CancelRefreshURITimers()
return NS_OK;
}
NS_IMETHODIMP
nsDocShell::GetRefreshPending(PRBool* _retval)
{
if (!mRefreshURIList) {
*_retval = PR_FALSE;
return NS_OK;
}
PRUint32 count;
nsresult rv = mRefreshURIList->Count(&count);
if (NS_SUCCEEDED(rv))
*_retval = (count != 0);
return rv;
}
NS_IMETHODIMP
nsDocShell::SuspendRefreshURIs()
{