aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--embed/ephy-embed-event.h17
-rw-r--r--embed/mozilla/EventContext.cpp5
3 files changed, 21 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index ac7b2ae7a..aa85bcfb5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;