summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-05-04 18:26:51 +0800
committerChristian Persch <chpe@src.gnome.org>2005-05-04 18:26:51 +0800
commitcbc2fbe7983d0976119691abcd7e9f944892fd35 (patch)
tree5af8e51cefda75d64a06d509a313e006ad5e42d7
parentca77759d838f54c46bcb8703688e93db3999e800 (diff)
downloadgsoc2013-epiphany-cbc2fbe7983d0976119691abcd7e9f944892fd35.tar
gsoc2013-epiphany-cbc2fbe7983d0976119691abcd7e9f944892fd35.tar.gz
gsoc2013-epiphany-cbc2fbe7983d0976119691abcd7e9f944892fd35.tar.bz2
gsoc2013-epiphany-cbc2fbe7983d0976119691abcd7e9f944892fd35.tar.lz
gsoc2013-epiphany-cbc2fbe7983d0976119691abcd7e9f944892fd35.tar.xz
gsoc2013-epiphany-cbc2fbe7983d0976119691abcd7e9f944892fd35.tar.zst
gsoc2013-epiphany-cbc2fbe7983d0976119691abcd7e9f944892fd35.zip
Fix the build from the last commit.
2005-05-04 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/mozilla-embed-persist.cpp: Fix the build from the last commit.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/mozilla-embed-persist.cpp12
2 files changed, 11 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index bfdb76b2e..555ed0168 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-04 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/mozilla-embed-persist.cpp:
+
+ Fix the build from the last commit.
+
2005-05-03 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EphyBrowser.cpp:
diff --git a/embed/mozilla/mozilla-embed-persist.cpp b/embed/mozilla/mozilla-embed-persist.cpp
index 404a0debf..b9f3e690c 100644
--- a/embed/mozilla/mozilla-embed-persist.cpp
+++ b/embed/mozilla/mozilla-embed-persist.cpp
@@ -183,20 +183,18 @@ impl_save (EphyEmbedPersist *persist)
/* Get the uri to save to */
nsCOMPtr<nsIURI> inURI;
- nsEmbedCString sURI;
if (uri)
{
- sURI.Assign (uri);
+ /* FIXME: origin charset!! */
+ rv = EphyUtils::NewURI (getter_AddRefs(inURI), nsEmbedCString(uri));
+ NS_ENSURE_SUCCESS (rv, FALSE);
}
else
{
- rv = browser->GetDocumentUrl (sURI);
+ rv = browser->GetDocumentURI (getter_AddRefs (inURI));
NS_ENSURE_SUCCESS (rv, FALSE);
}
- rv = EphyUtils::NewURI (getter_AddRefs(inURI), sURI);
- NS_ENSURE_SUCCESS (rv, FALSE);
-
/* Get post data */
nsCOMPtr<nsIInputStream> postData;
if (browser)
@@ -245,7 +243,7 @@ impl_save (EphyEmbedPersist *persist)
*/
NS_ENSURE_TRUE (!(flags & EPHY_EMBED_PERSIST_COPY_PAGE) || pageDescriptor, FALSE);
- if (filename == NULL)
+ if (filename == NULL || filename[0] == '\0')
{
/* Create an header sniffer and do the save */
nsCOMPtr<nsIWebBrowserPersist> webPersist =