Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTomeu <tomeu@bicho.(none)>2007-03-30 14:41:51 (GMT)
committer Tomeu <tomeu@bicho.(none)>2007-03-30 14:41:51 (GMT)
commit6dc536058bac61c5778099335c2fb55862536fc1 (patch)
treeff21d98aa45ce29ef7790272a58ca9e73326b59b /lib
parentca3b37c660b0adb21d12e350fc12dc931151307d (diff)
Deactivate extension based type checking for Gecko 1.8.
Diffstat (limited to 'lib')
-rw-r--r--lib/src/GeckoDownload.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/src/GeckoDownload.cpp b/lib/src/GeckoDownload.cpp
index cd45bc8..6f099bd 100644
--- a/lib/src/GeckoDownload.cpp
+++ b/lib/src/GeckoDownload.cpp
@@ -86,6 +86,7 @@ GeckoDownload::OnStateChange(nsIWebProgress *aWebProgress,
mMIMEInfo->GetMIMEType(mimeType);
mSource->GetSpec(url);
+#ifdef HAVE_GECKO_1_9
/* If the file is application/octet-stream, look up a better mime type
from the extension. */
if(mimeType.Equals(APPLICATION_OCTET_STREAM)) {
@@ -105,7 +106,8 @@ GeckoDownload::OnStateChange(nsIWebProgress *aWebProgress,
}
}
}
-
+#endif
+
sugar_download_manager_download_started(download_manager,
url.get(),
mimeType.get(),