From 0beb9543055b4149b0fee9bf2418ef2048eae4f9 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 14 Oct 2005 18:45:21 +0000 Subject: Work around mozilla bug 2005-10-14 Christian Persch * embed/mozilla/mozilla-embed.cpp: Work around mozilla bug https://bugzilla.mozilla.org/show_bug.cgi?id=312241 . --- embed/mozilla/mozilla-embed.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'embed/mozilla') diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index 5a684a54e..daeb19eaf 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -587,7 +587,8 @@ impl_get_location (EphyEmbed *embed, nsCOMPtr 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; -- cgit v1.2.3