aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-embed-persist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/mozilla-embed-persist.cpp')
-rw-r--r--embed/mozilla/mozilla-embed-persist.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/embed/mozilla/mozilla-embed-persist.cpp b/embed/mozilla/mozilla-embed-persist.cpp
index 0161086cb..f3117bbc3 100644
--- a/embed/mozilla/mozilla-embed-persist.cpp
+++ b/embed/mozilla/mozilla-embed-persist.cpp
@@ -254,9 +254,15 @@ impl_save (EphyEmbedPersist *persist)
do_QueryInterface (DOMDocument, &rv);
if (NS_FAILED(rv) || !document) return G_FAILED;
+#if MOZILLA_SNAPSHOT > 11
+ nsIURI *uri;
+ uri = document->GetDocumentURL ();
+ if (!uri) 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,