Bug #36371 --> clear refresh timers when loading new documents into the

docshell. This fixes the problem where after visiting a page with a refresh,
we would later always try to refresh that page even if you had moved on.
This commit is contained in:
mscott%netscape.com 2000-05-01 21:33:49 +00:00
Родитель 65b72822ba
Коммит f5e1bee33e
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -2278,6 +2278,8 @@ NS_IMETHODIMP nsDocShell::InternalLoad(nsIURI* aURI, nsIURI* aReferrer,
} }
NS_ENSURE_SUCCESS(StopCurrentLoads(), NS_ERROR_FAILURE); NS_ENSURE_SUCCESS(StopCurrentLoads(), NS_ERROR_FAILURE);
// Cancel any timers that were set for this loader.
CancelRefreshURITimers();
mLoadType = aLoadType; mLoadType = aLoadType;