aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r--embed/mozilla/EphyBrowser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 051b4d955..9da900f57 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -1138,6 +1138,8 @@ EphyBrowser::GetDocumentType ()
{
EmbedDocumentType type = EMBED_DOCUMENT_OTHER;
+ NS_ENSURE_TRUE (mDOMWindow, type);
+
nsresult rv;
nsCOMPtr<nsIDOMDocument> domDoc;
rv = GetDocument (getter_AddRefs (domDoc));