Ignore meta refresh values that supply negative numbers. b=149543 r=alecf@netscape.com sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@140690 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d67ce0fc99
commit
58c56a0322
@ -3985,9 +3985,10 @@ nsDocShell::SetupRefreshURIFromHeader(nsIURI * aBaseURI,
|
||||
nsIScriptSecurityManager::
|
||||
DISALLOW_FROM_MAIL);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
// since we can't travel back in time yet, just pretend it was meant figuratively
|
||||
// Since we can't travel back in time yet, just pretend
|
||||
// negative numbers do nothing at all.
|
||||
if (seconds < 0)
|
||||
seconds = 0;
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
rv = RefreshURI(uri, seconds * 1000, PR_FALSE, PR_TRUE);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user