Bug 408550 - Saved password filter text box is case sensitive when it should not be. r=gavin, a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@242157 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e4274f2151
commit
bf88f4cd09
@ -256,20 +256,23 @@ function FocusFilterBox()
|
||||
}
|
||||
|
||||
function SignonMatchesFilter(aSignon, aFilterValue) {
|
||||
if (aSignon.hostname.indexOf(aFilterValue) != -1)
|
||||
if (aSignon.hostname.toLowerCase().indexOf(aFilterValue) != -1)
|
||||
return true;
|
||||
if (aSignon.username && aSignon.username.indexOf(aFilterValue) != -1)
|
||||
if (aSignon.username &&
|
||||
aSignon.username.toLowerCase().indexOf(aFilterValue) != -1)
|
||||
return true;
|
||||
if (aSignon.httpRealm && aSignon.httpRealm.indexOf(aFilterValue) != -1)
|
||||
if (aSignon.httpRealm &&
|
||||
aSignon.httpRealm.toLowerCase().indexOf(aFilterValue) != -1)
|
||||
return true;
|
||||
if (showingPasswords && aSignon.password &&
|
||||
aSignon.password.indexOf(aFilterValue) != -1)
|
||||
aSignon.password.toLowerCase().indexOf(aFilterValue) != -1)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function FilterPasswords(aFilterValue, view) {
|
||||
aFilterValue = aFilterValue.toLowerCase();
|
||||
return signons.filter(function (s) SignonMatchesFilter(s, aFilterValue));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user