From 6fb031c9945eff5102c55776a6898927daede351 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 27 Feb 2005 14:13:45 +0000 Subject: Check for password inputs too. 2005-02-27 Christian Persch * embed/ephy-embed-event.h: * embed/mozilla/EventContext.cpp: Check for password inputs too. --- ChangeLog | 7 +++++++ embed/ephy-embed-event.h | 17 +++++++++-------- embed/mozilla/EventContext.cpp | 5 +++++ 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index ac7b2ae7a..aa85bcfb5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-02-27 Christian Persch + + * embed/ephy-embed-event.h: + * embed/mozilla/EventContext.cpp: + + Check for password inputs too. + 2005-02-27 Christian Persch * embed/ephy-favicon-cache.c: (ephy_favicon_cache_get): 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; -- cgit v1.2.3