diff options
author | Cosimo Cecchi <cosimoc@src.gnome.org> | 2008-01-25 03:14:16 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@src.gnome.org> | 2008-01-25 03:14:16 +0800 |
commit | 7aefac15c53fdecdf97dc62e39b15642097af3eb (patch) | |
tree | 175d14b1da5ffdf7b78a6409309b60865095b4a6 /embed | |
parent | 03f88794174a3e34b45da41befe217766b3fea09 (diff) | |
download | gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.gz gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.bz2 gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.lz gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.xz gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.tar.zst gsoc2013-epiphany-7aefac15c53fdecdf97dc62e39b15642097af3eb.zip |
Better fix for bug #511759.
svn path=/trunk/; revision=7888
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/MozDownload.cpp | 5 | ||||
-rw-r--r-- | embed/xulrunner/components/MozDownload.cpp | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/embed/mozilla/MozDownload.cpp b/embed/mozilla/MozDownload.cpp index bdce1212f..d3d13d32b 100644 --- a/embed/mozilla/MozDownload.cpp +++ b/embed/mozilla/MozDownload.cpp @@ -404,8 +404,11 @@ MozDownload::OnStateChange (nsIWebProgress *aWebProgress, nsIRequest *aRequest, rv = mDestination->GetSpec (aDest); NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE); - ephy_file_browse_to (aDest.get (), user_time); + GFile *dest; + dest = g_file_new_for_uri (aDest.get ()); + ephy_file_browse_to (dest, user_time); + g_object_unref (dest); g_strfreev (str); } #endif /* HAVE_GECKO_1_9 */ diff --git a/embed/xulrunner/components/MozDownload.cpp b/embed/xulrunner/components/MozDownload.cpp index 7b935f5aa..b079b83b3 100644 --- a/embed/xulrunner/components/MozDownload.cpp +++ b/embed/xulrunner/components/MozDownload.cpp @@ -400,8 +400,12 @@ MozDownload::OnStateChange (nsIWebProgress *aWebProgress, nsIRequest *aRequest, rv = mDestination->GetSpec (aDest); NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE); - ephy_file_browse_to (aDest.get (), user_time); + GFile *dest; + dest = g_file_new_for_uri (dest); + ephy_file_browse_to (dest, user_time); + + g_object_unref (dest); g_strfreev (str); } #endif /* HAVE_GECKO_1_9 */ |