aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-03-02 21:14:19 +0800
committerChristian Persch <chpe@src.gnome.org>2006-03-02 21:14:19 +0800
commit585505c053875e2e62182df6f85b3116b7764f1e (patch)
treef68b6656fbbfc5dc2cbe1bd17f15b893ef63634e /embed/mozilla
parentfc58f00b58a1028a0713a5afe9acfe13c85b9f4b (diff)
downloadgsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.gz
gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.zst
gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.zip
Don't activate typeaheadfind on XUL documents.
2006-03-02 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EventContext.cpp: Don't activate typeaheadfind on XUL documents.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/EventContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp
index dd71234f5..70faf0235 100644
--- a/embed/mozilla/EventContext.cpp
+++ b/embed/mozilla/EventContext.cpp
@@ -1072,6 +1072,9 @@ EventContext::CheckKeyPress (nsIDOMKeyEvent *aEvent)
rv = node->GetOwnerDocument (getter_AddRefs (doc));
NS_ENSURE_SUCCESS (rv, retval);
+ nsCOMPtr<nsIDOMXULDocument> xul_document (do_QueryInterface(doc, &rv));
+ if (xul_document) return retval;
+
nsCOMPtr<nsIDOMNSHTMLDocument> htmlDoc (do_QueryInterface (doc));
if (htmlDoc)
{