mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 312680 - Unknown protocol error should cause an error page instead of a dialog. r=biesi
This commit is contained in:
parent
cd491d4c50
commit
126d0636ac
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user