Bug 312680 - Unknown protocol error should cause an error page instead of a dialog. r=biesi

This commit is contained in:
O. Atsushi 2012-02-15 23:28:19 +01:00
parent cd491d4c50
commit 126d0636ac

View File

@ -4121,7 +4121,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 && aFailedChannel) {
if (mUseErrorPages && aURI) {
// Display an error page
LoadErrorPage(aURI, aURL, errorPage.get(), error.get(),
messageStr.get(), cssClass.get(), aFailedChannel);