diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-08-08 04:04:54 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-08-08 04:04:54 +0800 |
commit | 99a17a025c2ef82f38b8392f3ce060bf526e8fbd (patch) | |
tree | bebced8a492ee2caeb02069939a42e407ebc6000 | |
parent | 44303f0ba0921983df056a62dfe580907fc05a0c (diff) | |
download | gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar.gz gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar.bz2 gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar.lz gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar.xz gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.tar.zst gsoc2013-epiphany-99a17a025c2ef82f38b8392f3ce060bf526e8fbd.zip |
Don't start search on <embed> and <object> elements.
2006-08-07 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EventContext.cpp:
Don't start search on <embed> and <object> elements.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/EventContext.cpp | 7 |
2 files changed, 12 insertions, 1 deletions
@@ -1,5 +1,11 @@ 2006-08-07 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/EventContext.cpp: + + Don't start search on <embed> and <object> elements. + +2006-08-07 Christian Persch <chpe@cvs.gnome.org> + * data/default-prefs-common.js: Don't leak the UI language. diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index dfb29dac6..27166d976 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -44,6 +44,7 @@ #include <nsIDOMHTMLAreaElement.h> #include <nsIDOMHTMLBodyElement.h> #include <nsIDOMHTMLButtonElement.h> +#include <nsIDOMHTMLEmbedElement.h> #include <nsIDOMHTMLImageElement.h> #include <nsIDOMHTMLInputElement.h> #include <nsIDOMHTMLIsIndexElement.h> @@ -1060,10 +1061,14 @@ EventContext::CheckKeyPress (nsIDOMKeyEvent *aEvent) nsCOMPtr<nsIDOMHTMLTextAreaElement> textArea; nsCOMPtr<nsIDOMHTMLSelectElement> selectElement; nsCOMPtr<nsIDOMHTMLIsIndexElement> indexElement; + nsCOMPtr<nsIDOMHTMLObjectElement> objectElement; + nsCOMPtr<nsIDOMHTMLEmbedElement> embedElement; if ((textArea = do_QueryInterface (target)) || (selectElement = do_QueryInterface (target)) || - (indexElement = do_QueryInterface (target))) return retval; + (indexElement = do_QueryInterface (target)) || + (objectElement = do_QueryInterface (target)) || + (embedElement = do_QueryInterface (target))) return retval; /* check for design mode */ nsCOMPtr<nsIDOMNode> node (do_QueryInterface (target, &rv)); |