aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed-event.h17
-rw-r--r--embed/mozilla/EventContext.cpp5
2 files changed, 14 insertions, 8 deletions
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;