From 7aefac15c53fdecdf97dc62e39b15642097af3eb Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 24 Jan 2008 19:14:16 +0000 Subject: Better fix for bug #511759. svn path=/trunk/; revision=7888 --- embed/mozilla/MozDownload.cpp | 5 ++++- embed/xulrunner/components/MozDownload.cpp | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'embed') 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 */ -- cgit v1.2.3