diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-01-30 05:44:46 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-01-30 05:44:46 +0800 |
commit | 34e421be7f10496d476266e656ddffe00b42b4e7 (patch) | |
tree | e66b424d32e6f23db49c2c8d0683eea38e077201 /embed/mozilla/mozilla-embed-single.cpp | |
parent | c488b4e9aca045965156e425129a6be95637da98 (diff) | |
download | gsoc2013-epiphany-34e421be7f10496d476266e656ddffe00b42b4e7.tar gsoc2013-epiphany-34e421be7f10496d476266e656ddffe00b42b4e7.tar.gz gsoc2013-epiphany-34e421be7f10496d476266e656ddffe00b42b4e7.tar.bz2 gsoc2013-epiphany-34e421be7f10496d476266e656ddffe00b42b4e7.tar.lz gsoc2013-epiphany-34e421be7f10496d476266e656ddffe00b42b4e7.tar.xz gsoc2013-epiphany-34e421be7f10496d476266e656ddffe00b42b4e7.tar.zst gsoc2013-epiphany-34e421be7f10496d476266e656ddffe00b42b4e7.zip |
If GetPassword failed, break instead of continue. That way we don't
2006-01-29 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/mozilla-embed-single.cpp:
If GetPassword failed, break instead of continue.
That way we don't endlessly re-ask for the master password.
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 0523473a6..e4295ca94 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -1067,7 +1067,15 @@ impl_list_passwords (EphyPasswordManager *manager) NS_CSTRING_ENCODING_UTF8, userName); rv = nsPassword->GetPassword (unicodeName); - if (NS_FAILED (rv)) continue; + if (NS_FAILED (rv)) + { + /* this usually means we couldn't decrypt the password, due to + * the master password being unavailable. Don't continue since that + * would lead to endless prompting for the master password; abort + * instead. + */ + break; + } nsEmbedCString userPassword; NS_UTF16ToCString (unicodeName, |