summaryrefslogtreecommitdiffstats
path: root/www/epiphany/files/patch-embed_mozilla_EphyEventListener.cpp
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-11-14 09:05:38 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-11-14 09:05:38 +0800
commit322ffcd52972452de36112dd3fa44bf107fd25e8 (patch)
tree0626c87149b57aba44a65e5160c9d2c8b94a331b /www/epiphany/files/patch-embed_mozilla_EphyEventListener.cpp
parentbcd1808193a8a889c2442b8347c5405ac0d979b4 (diff)
downloadmarcuscom-ports-322ffcd52972452de36112dd3fa44bf107fd25e8.tar
marcuscom-ports-322ffcd52972452de36112dd3fa44bf107fd25e8.tar.gz
marcuscom-ports-322ffcd52972452de36112dd3fa44bf107fd25e8.tar.bz2
marcuscom-ports-322ffcd52972452de36112dd3fa44bf107fd25e8.tar.lz
marcuscom-ports-322ffcd52972452de36112dd3fa44bf107fd25e8.tar.xz
marcuscom-ports-322ffcd52972452de36112dd3fa44bf107fd25e8.tar.zst
marcuscom-ports-322ffcd52972452de36112dd3fa44bf107fd25e8.zip
Add epiphany and update to 1.1.0.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1320 df743ca5-7f9a-e211-a948-0013205c9059
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;