aboutsummaryrefslogtreecommitdiffstats
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
parentfc58f00b58a1028a0713a5afe9acfe13c85b9f4b (diff)
downloadgsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar
gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.gz
gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.bz2
gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.lz
gsoc2013-epiphany-585505c053875e2e62182df6f85b3116b7764f1e.tar.xz
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.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/EventContext.cpp3
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a1a95fb19..5190b688e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-03-02 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/EventContext.cpp:
+
+ Don't activate typeaheadfind on XUL documents.
+
2006-02-27 Christian Persch <chpe@cvs.gnome.org>
* configure.ac:
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)
{