bug 307027 - going back from secure page to error page does not clear yellow bar, r=bz, sr=darin, a=asa

This commit is contained in:
mconnor%steelgryphon.com 2005-10-04 03:50:05 +00:00
Родитель 2125930cff
Коммит bb9ef1fa0d
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -3054,7 +3054,7 @@ nsDocShell::DisplayLoadError(nsresult aError, nsIURI *aURI,
NS_ENSURE_FALSE(messageStr.IsEmpty(), NS_ERROR_FAILURE);
// Note: For now, display an alert instead of an error page if we have no
// URI object. Missing URI objects are handled badly by session history.
if (mUseErrorPages && aURI) {
if (mUseErrorPages && aURI && aFailedChannel) {
// Display an error page
LoadErrorPage(aURI, aURL, error.get(), messageStr.get(),
aFailedChannel);