aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/ContentHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/ContentHandler.cpp')
-rw-r--r--embed/mozilla/ContentHandler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp
index de122f65a..4e19d312d 100644
--- a/embed/mozilla/ContentHandler.cpp
+++ b/embed/mozilla/ContentHandler.cpp
@@ -494,18 +494,18 @@ NS_METHOD GContentHandler::Init (void)
rv = mLauncher->GetMIMEInfo (getter_AddRefs(MIMEInfo));
rv = MIMEInfo->GetMIMEType (&mMimeType);
+#if MOZILLA_SNAPSHOT > 11
+ rv = mLauncher->GetSource(getter_AddRefs(mUri));
+ rv = mLauncher->GetTargetFile(getter_AddRefs(mTempFile));
+#else
rv = mLauncher->GetDownloadInfo(getter_AddRefs(mUri),
&mTimeDownloadStarted,
getter_AddRefs(mTempFile));
+#endif
+
rv = mUri->GetSpec (mUrl);
rv = mUri->GetScheme (mScheme);
-#if 0
- /* GetSource seems redundant and isn't in 0.9 This code is here while
- it remains unclear what GetSource is for. --phil */
- nsCOMPtr<nsIURI> uri;
- rv = mLauncher->GetSource(getter_AddRefs(uri));
- rv = uri->GetSpec (mUrl);
-#endif
+
ProcessMimeInfo ();
return NS_OK;