summaryrefslogtreecommitdiffstats
path: root/www/epiphany/files/patch-embed_mozilla_EphyEventListener.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'www/epiphany/files/patch-embed_mozilla_EphyEventListener.cpp')
-rw-r--r--www/epiphany/files/patch-embed_mozilla_EphyEventListener.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/www/epiphany/files/patch-embed_mozilla_EphyEventListener.cpp b/www/epiphany/files/patch-embed_mozilla_EphyEventListener.cpp
new file mode 100644
index 000000000..48f6e973a
--- /dev/null
+++ b/www/epiphany/files/patch-embed_mozilla_EphyEventListener.cpp
@@ -0,0 +1,29 @@
+--- embed/mozilla/EphyEventListener.cpp.orig Sat Nov 1 22:39:59 2003
++++ embed/mozilla/EphyEventListener.cpp Sat Nov 1 22:41:44 2003
+@@ -16,6 +16,10 @@
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
++#ifdef HAVE_CONFIG_H
++#include <config.h>
++#endif
++
+ #include <nsCOMPtr.h>
+
+ #include "EphyEventListener.h"
+@@ -80,9 +84,15 @@
+ nsCOMPtr<nsIDocument> doc = do_QueryInterface (domDoc);
+ if(!doc) return NS_ERROR_FAILURE;
+
++#if MOZILLA_SNAPSHOT > 11
++ nsIURI *uri;
++ uri = doc->GetDocumentURL ();
++ if (uri == NULL) return NS_ERROR_FAILURE;
++#else
+ nsCOMPtr<nsIURI> uri;
+ result = doc->GetDocumentURL(getter_AddRefs(uri));
+ if (NS_FAILED (result)) return NS_ERROR_FAILURE;
++#endif
+
+ const nsACString &link = NS_ConvertUCS2toUTF8(value);
+ nsCAutoString favicon_url;