diff options
Diffstat (limited to 'embed/mozilla/mozilla-embed-persist.cpp')
-rw-r--r-- | embed/mozilla/mozilla-embed-persist.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed-persist.cpp b/embed/mozilla/mozilla-embed-persist.cpp index f3117bbc3..c2b0f2353 100644 --- a/embed/mozilla/mozilla-embed-persist.cpp +++ b/embed/mozilla/mozilla-embed-persist.cpp @@ -254,7 +254,11 @@ impl_save (EphyEmbedPersist *persist) do_QueryInterface (DOMDocument, &rv); if (NS_FAILED(rv) || !document) return G_FAILED; -#if MOZILLA_SNAPSHOT > 11 +#if MOZILLA_SNAPSHOT > 13 + nsIURI *uri; + uri = document->GetDocumentURI (); + if (!uri) return G_FAILED; +#elif MOZILLA_SNAPSHOT > 11 nsIURI *uri; uri = document->GetDocumentURL (); if (!uri) return G_FAILED; |