aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/ContentHandler.cpp16
2 files changed, 15 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 61bdb147c..149ab6644 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-09-27 Xan Lopez <xan@masilla.org>
+
+ * configure.in:
+ * embed/mozilla/ContentHandler.cpp:
+
+ API sync, from galeon.
+
2003-09-27 Christian Persch <chpe@cvs.gnome.org>
* src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import):
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp
index 49152e586..48809a099 100644
--- a/embed/mozilla/ContentHandler.cpp
+++ b/embed/mozilla/ContentHandler.cpp
@@ -493,19 +493,19 @@ NS_METHOD GContentHandler::Init (void)
nsCOMPtr<nsIMIMEInfo> MIMEInfo;
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;