diff options
Diffstat (limited to 'www/epiphany/files/patch-embed_mozilla_EphyWrapper.cpp')
-rw-r--r-- | www/epiphany/files/patch-embed_mozilla_EphyWrapper.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/www/epiphany/files/patch-embed_mozilla_EphyWrapper.cpp b/www/epiphany/files/patch-embed_mozilla_EphyWrapper.cpp new file mode 100644 index 000000000000..f3575e0abe48 --- /dev/null +++ b/www/epiphany/files/patch-embed_mozilla_EphyWrapper.cpp @@ -0,0 +1,30 @@ +--- embed/mozilla/EphyWrapper.cpp.orig Sat Nov 1 22:42:25 2003 ++++ embed/mozilla/EphyWrapper.cpp Sat Nov 1 22:53:59 2003 +@@ -582,8 +582,13 @@ + nsCOMPtr<nsIDocument> doc = do_QueryInterface(DOMDocument); + if(!doc) return NS_ERROR_FAILURE; + ++#if MOZILLA_SNAPSHOT > 11 ++ nsIURI *uri; ++ uri = doc->GetDocumentURL (); ++#else + nsCOMPtr<nsIURI> uri; + doc->GetDocumentURL(getter_AddRefs(uri)); ++#endif + + return uri->GetSpec (url); + } +@@ -600,8 +605,13 @@ + nsCOMPtr<nsIDocument> doc = do_QueryInterface(DOMDocument); + if(!doc) return NS_ERROR_FAILURE; + ++#if MOZILLA_SNAPSHOT > 11 ++ nsIURI *uri; ++ uri = doc->GetDocumentURL (); ++#else + nsCOMPtr<nsIURI> uri; + doc->GetDocumentURL(getter_AddRefs(uri)); ++#endif + + uri->GetSpec (url); + |