aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorJean-François Rameau <jframeau@cvs.gnome.org>2005-10-23 06:11:05 +0800
committerJean-François Rameau <jframeau@src.gnome.org>2005-10-23 06:11:05 +0800
commit07ca2fa20e3cc2781c6a1e74f1800065372b2b7f (patch)
tree045a825fd044ec5578f7bd888eb6f6c536c217e5 /embed
parent53c9df2f5c6a6337693602bc02554a21bf809c58 (diff)
downloadgsoc2013-epiphany-07ca2fa20e3cc2781c6a1e74f1800065372b2b7f.tar
gsoc2013-epiphany-07ca2fa20e3cc2781c6a1e74f1800065372b2b7f.tar.gz
gsoc2013-epiphany-07ca2fa20e3cc2781c6a1e74f1800065372b2b7f.tar.bz2
gsoc2013-epiphany-07ca2fa20e3cc2781c6a1e74f1800065372b2b7f.tar.lz
gsoc2013-epiphany-07ca2fa20e3cc2781c6a1e74f1800065372b2b7f.tar.xz
gsoc2013-epiphany-07ca2fa20e3cc2781c6a1e74f1800065372b2b7f.tar.zst
gsoc2013-epiphany-07ca2fa20e3cc2781c6a1e74f1800065372b2b7f.zip
Add a way to view stored password. Fix bug 316821.
2005-10-22 Jean-François Rameau <jframeau@cvs.gnome.org> * embed/mozilla/mozilla-embed-single.cpp: (impl_list_passwords): * src/pdm-dialog.c: * data/glade/epiphany.glade: Add a way to view stored password. Fix bug 316821.
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/mozilla-embed-single.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp
index da5272b96..2c1ac191a 100644
--- a/embed/mozilla/mozilla-embed-single.cpp
+++ b/embed/mozilla/mozilla-embed-single.cpp
@@ -810,11 +810,18 @@ impl_list_passwords (EphyPasswordManager *manager)
NS_UTF16ToCString (unicodeName,
NS_CSTRING_ENCODING_UTF8, userName);
+ rv = nsPassword->GetPassword (unicodeName);
+ if (NS_FAILED (rv)) continue;
+
+ nsEmbedCString userPassword;
+ NS_UTF16ToCString (unicodeName,
+ NS_CSTRING_ENCODING_UTF8, userPassword);
+
EphyPasswordInfo *p = g_new0 (EphyPasswordInfo, 1);
p->host = g_strdup (host.get());
p->username = g_strdup (userName.get());
- p->password = NULL;
+ p->password = g_strdup (userPassword.get());
passwords = g_list_prepend (passwords, p);
}