From e04c3b73a2bff0e5b6f1b597df150bbff7fef2b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Rameau?= Date: Sat, 24 Sep 2005 19:06:46 +0000 Subject: Handle contentEncodingError error. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2005-09-24 Jean-François Rameau * embed/mozilla/EphyAboutModule.cpp: (GetErrorMessage): Handle contentEncodingError error. --- ChangeLog | 6 ++++++ embed/mozilla/EphyAboutModule.cpp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8cdbcba5f..c0d8fa490 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-09-24 Jean-François Rameau + + * embed/mozilla/EphyAboutModule.cpp: (GetErrorMessage): + + Handle contentEncodingError error. + 2005-09-24 Crispin Flowerday * lib/Makefile.am: diff --git a/embed/mozilla/EphyAboutModule.cpp b/embed/mozilla/EphyAboutModule.cpp index 5b38b0ae1..b425216a7 100644 --- a/embed/mozilla/EphyAboutModule.cpp +++ b/embed/mozilla/EphyAboutModule.cpp @@ -326,6 +326,11 @@ EphyAboutModule::GetErrorMessage(nsIURI *aURI, "a problem with your proxy server or your " "network connection."); } + else if (strcmp (aError, "contentEncodingError") == 0) + { + *aPrimary = g_strdup (_("Could not display content.")); + *aSecondary = _("The page uses an unsupported or invalid form of compression."); + } else { return NS_ERROR_ILLEGAL_VALUE; -- cgit v1.2.3