Image 01
profile-image

tomglx

Firefox addon for kwallet KDE5

Various Plasma 5 Improvements by gmolina 26 comments

I've created the following preliminary patch. Which fixes it for me.

--- KDE5WalletStorage.js.orig 2016-10-08 19:55:47.617159179 +0200
+++ KDEWalletStorage.js 2016-10-08 19:57:10.424447710 +0200
@@ -224,21 +220,28 @@
searchLogins: function (outCount, matchData) {
this.log( "searchLogins() Start" );
let propEnum = matchData.enumerator;
- var guid;
+ var guid, hostname, formSubmitURL, realm;
while (propEnum.hasMoreElements()) {
let prop = propEnum.getNext().QueryInterface(Ci.nsIProperty);
switch (prop.name) {
case "guid":
guid = prop.value;
break;
-/*
case "hostname":
- case "username":
- case "password":
+ hostname = prop.value;
+ break;
case "formSubmitURL":
+ formSubmitURL = prop.value;
+ break;
+ case "schemeUpgrades":
+ break;
+ case "httpRealm":
+ realm = prop.value;
+ break;
+/* case "username":
+ case "password":
case "usernameField":
case "passwordField":
- case "httpRealm":
// nsILoginMetaInfo properties...
// case "guid":
case "timeCreated":
@@ -251,7 +254,8 @@
throw "Unexpected propertybag item: " + prop.name;
}
}
- let entries = this._lib.findLoginsWithGuid( guid );
+// let entries = this._lib.findLoginsWithGuid( guid );
+ let entries = this._lib.findLogins( hostname, formSubmitURL, realm );
return this._array2NsILoginInfo( outCount, entries );
},
- Oct 08 2016