diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-02-27 22:13:45 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-02-27 22:13:45 +0800 |
commit | 6fb031c9945eff5102c55776a6898927daede351 (patch) | |
tree | a951d63119a7d3e741e9b6a6d895e564a4b94803 | |
parent | dbe82af48107b7ed00e21257507dc4e81ce1600c (diff) | |
download | gsoc2013-epiphany-6fb031c9945eff5102c55776a6898927daede351.tar gsoc2013-epiphany-6fb031c9945eff5102c55776a6898927daede351.tar.gz gsoc2013-epiphany-6fb031c9945eff5102c55776a6898927daede351.tar.bz2 gsoc2013-epiphany-6fb031c9945eff5102c55776a6898927daede351.tar.lz gsoc2013-epiphany-6fb031c9945eff5102c55776a6898927daede351.tar.xz gsoc2013-epiphany-6fb031c9945eff5102c55776a6898927daede351.tar.zst gsoc2013-epiphany-6fb031c9945eff5102c55776a6898927daede351.zip |
Check for password inputs too.
2005-02-27 Christian Persch <chpe@cvs.gnome.org>
* embed/ephy-embed-event.h:
* embed/mozilla/EventContext.cpp:
Check for password inputs too.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | embed/ephy-embed-event.h | 17 | ||||
-rw-r--r-- | embed/mozilla/EventContext.cpp | 5 |
3 files changed, 21 insertions, 8 deletions
@@ -1,5 +1,12 @@ 2005-02-27 Christian Persch <chpe@cvs.gnome.org> + * embed/ephy-embed-event.h: + * embed/mozilla/EventContext.cpp: + + Check for password inputs too. + +2005-02-27 Christian Persch <chpe@cvs.gnome.org> + * embed/ephy-favicon-cache.c: (ephy_favicon_cache_get): Check the favicon file type and only allow ico, gif & png. diff --git a/embed/ephy-embed-event.h b/embed/ephy-embed-event.h index 99cca384c..95d59d073 100644 --- a/embed/ephy-embed-event.h +++ b/embed/ephy-embed-event.h @@ -39,14 +39,15 @@ typedef struct _EphyEmbedEvent EphyEmbedEvent; typedef enum { - EPHY_EMBED_CONTEXT_NONE = 0, - EPHY_EMBED_CONTEXT_DEFAULT = 1 << 1, - EPHY_EMBED_CONTEXT_LINK = 1 << 2, - EPHY_EMBED_CONTEXT_IMAGE = 1 << 3, - EPHY_EMBED_CONTEXT_DOCUMENT = 1 << 4, - EPHY_EMBED_CONTEXT_INPUT = 1 << 5, - EPHY_EMBED_CONTEXT_XUL = 1 << 7, - EPHY_EMBED_CONTEXT_EMAIL_LINK = 1 << 8 + EPHY_EMBED_CONTEXT_NONE = 0, + EPHY_EMBED_CONTEXT_DEFAULT = 1 << 1, + EPHY_EMBED_CONTEXT_LINK = 1 << 2, + EPHY_EMBED_CONTEXT_IMAGE = 1 << 3, + EPHY_EMBED_CONTEXT_DOCUMENT = 1 << 4, + EPHY_EMBED_CONTEXT_INPUT = 1 << 5, + EPHY_EMBED_CONTEXT_INPUT_PASSWORD = 1 << 6, + EPHY_EMBED_CONTEXT_XUL = 1 << 7, + EPHY_EMBED_CONTEXT_EMAIL_LINK = 1 << 8 } EphyEmbedEventContext; struct _EphyEmbedEventIface diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index 1472ee4d7..da746946d 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -813,6 +813,11 @@ nsresult EventContext::CheckInput (nsIDOMNode *aNode) g_ascii_strcasecmp (value.get(), "checkbox") != 0) { mEmbedEvent->context |= EPHY_EMBED_CONTEXT_INPUT; + + if (g_ascii_strcasecmp (value.get(), "password") == 0) + { + mEmbedEvent->context |= EPHY_EMBED_CONTEXT_INPUT_PASSWORD; + } } return NS_OK; |