aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-09-27 21:22:39 +0800
committerXan Lopez <xan@src.gnome.org>2003-09-27 21:22:39 +0800
commitf467a03305ba1e11655e417fc5714837027f0bd5 (patch)
tree5c2f3079ad48527402f06e9ba4ef6d305f9a804d /embed/mozilla
parentf3ba14d22871c32e5051550147a79e9b059d8334 (diff)
downloadgsoc2013-epiphany-f467a03305ba1e11655e417fc5714837027f0bd5.tar
gsoc2013-epiphany-f467a03305ba1e11655e417fc5714837027f0bd5.tar.gz
gsoc2013-epiphany-f467a03305ba1e11655e417fc5714837027f0bd5.tar.bz2
gsoc2013-epiphany-f467a03305ba1e11655e417fc5714837027f0bd5.tar.lz
gsoc2013-epiphany-f467a03305ba1e11655e417fc5714837027f0bd5.tar.xz
gsoc2013-epiphany-f467a03305ba1e11655e417fc5714837027f0bd5.tar.zst
gsoc2013-epiphany-f467a03305ba1e11655e417fc5714837027f0bd5.zip
API sync, from galeon.
API sync, from galeon.
Diffstat (limited to 'embed/mozilla')
-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;