summaryrefslogtreecommitdiff
path: root/www/epiphany/files/patch-embed_mozilla_mozilla-embed-persist.cpp
blob: 0980c3c25d00b5f6da9cf5a41dfbefe761d54298 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- embed/mozilla/mozilla-embed-persist.cpp.orig	Sat Nov  1 23:12:09 2003
+++ embed/mozilla/mozilla-embed-persist.cpp	Sun Nov  2 00:03:17 2003
@@ -254,9 +254,15 @@
                                 do_QueryInterface (DOMDocument, &rv);
         	if (NS_FAILED(rv) || !document) return G_FAILED;
 
+#if MOZILLA_SNAPSHOT > 11
+	        nsIURI *uri;
+	        uri = document->GetDocumentURL ();
+	        if (uri == NULL) return G_FAILED;
+#else
 	        nsCOMPtr<nsIURI> uri;
         	rv = document->GetDocumentURL (getter_AddRefs(uri));
         	if (NS_FAILED(rv) || !uri) return G_FAILED;
+#endif
 
         	aProgress->InitForPersist (bpersist, parent,
                    	                   uri, file,