aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-10-15 02:45:32 +0800
committerChristian Persch <chpe@src.gnome.org>2005-10-15 02:45:32 +0800
commit999fb888553e21859003b775a82011e120266fb5 (patch)
tree13ee8ed67a74bb8ecab56f44d7146b17daef61da /embed
parentcead716475168834c3c963b34546fabbf816e4b6 (diff)
downloadgsoc2013-epiphany-999fb888553e21859003b775a82011e120266fb5.tar
gsoc2013-epiphany-999fb888553e21859003b775a82011e120266fb5.tar.gz
gsoc2013-epiphany-999fb888553e21859003b775a82011e120266fb5.tar.bz2
gsoc2013-epiphany-999fb888553e21859003b775a82011e120266fb5.tar.lz
gsoc2013-epiphany-999fb888553e21859003b775a82011e120266fb5.tar.xz
gsoc2013-epiphany-999fb888553e21859003b775a82011e120266fb5.tar.zst
gsoc2013-epiphany-999fb888553e21859003b775a82011e120266fb5.zip
Work around mozilla bug
2005-10-14 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/mozilla-embed.cpp: Work around mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=312241 .
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/mozilla-embed.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 5116f12e3..b5e7aec66 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -586,7 +586,8 @@ impl_get_location (EphyEmbed *embed,
nsCOMPtr<nsIURI> furi;
rv = uri->Clone (getter_AddRefs (furi));
- if (NS_FAILED (rv)) return NULL;
+ /* Some nsIURI impls return NS_OK even though they didn't put anything in the outparam!! */
+ if (NS_FAILED (rv) || !furi) furi.swap(uri);
/* Hide password part */
nsEmbedCString user;