diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-05-19 05:50:31 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-05-19 05:50:31 +0800 |
commit | 2865c6845b136c925ee51d5be79ede3e4aac8fd3 (patch) | |
tree | ce914f23b4f1708b157b086424fd039175447367 /embed | |
parent | a80a05feb7bcb5100d74f47c7dca12c10ce6023f (diff) | |
download | gsoc2013-epiphany-2865c6845b136c925ee51d5be79ede3e4aac8fd3.tar gsoc2013-epiphany-2865c6845b136c925ee51d5be79ede3e4aac8fd3.tar.gz gsoc2013-epiphany-2865c6845b136c925ee51d5be79ede3e4aac8fd3.tar.bz2 gsoc2013-epiphany-2865c6845b136c925ee51d5be79ede3e4aac8fd3.tar.lz gsoc2013-epiphany-2865c6845b136c925ee51d5be79ede3e4aac8fd3.tar.xz gsoc2013-epiphany-2865c6845b136c925ee51d5be79ede3e4aac8fd3.tar.zst gsoc2013-epiphany-2865c6845b136c925ee51d5be79ede3e4aac8fd3.zip |
Fix bug #453379.
svn path=/branches/gnome-2-22/; revision=8232
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/mozilla-embed.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp index dfa3c23a1..c17d79d58 100644 --- a/embed/mozilla/mozilla-embed.cpp +++ b/embed/mozilla/mozilla-embed.cpp @@ -1374,8 +1374,14 @@ static EphyEmbedSecurityLevel mozilla_embed_security_level (PRUint32 state) { EphyEmbedSecurityLevel level; - - switch (state) + const PRUint32 mask = (nsIWebProgressListener::STATE_IS_SECURE | + nsIWebProgressListener::STATE_IS_BROKEN | + nsIWebProgressListener::STATE_IS_INSECURE | + nsIWebProgressListener::STATE_SECURE_HIGH | + nsIWebProgressListener::STATE_SECURE_MED | + nsIWebProgressListener::STATE_SECURE_LOW); + + switch (state & mask) { case nsIWebProgressListener::STATE_IS_INSECURE: level = EPHY_EMBED_STATE_IS_INSECURE; |