Index: embed/mozilla/EventContext.cpp =================================================================== RCS file: /cvs/gnome/epiphany/embed/mozilla/EventContext.cpp,v retrieving revision 1.62 diff -p -u -u -p -r1.62 EventContext.cpp --- embed/mozilla/EventContext.cpp 13 Jan 2006 11:46:24 -0000 1.62 +++ embed/mozilla/EventContext.cpp 2 Mar 2006 13:08:16 -0000 @@ -1072,6 +1072,9 @@ EventContext::CheckKeyPress (nsIDOMKeyEv rv = node->GetOwnerDocument (getter_AddRefs (doc)); NS_ENSURE_SUCCESS (rv, retval); + nsCOMPtr xul_document (do_QueryInterface(doc, &rv)); + if (xul_document) return retval; + nsCOMPtr htmlDoc (do_QueryInterface (doc)); if (htmlDoc) {