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:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user