Bug 1123431 - Use case-insensitive search for filtering passwords on about:passwords. r=liuche
authorChenxia Liu <liuche@mozilla.com>
Mon, 02 Mar 2015 18:35:05 -0800
changeset 261788 ab9ddccfc5c796da566a3887438196308d75e76a
parent 261787 b726620f6dc2f2c6d1de27bc75cc7e56d216a8d9
child 261789 e545f650c695254b11c9108943ef8b3fbda4997b
child 262007 5bb22cb0565c8a26a65a016b921723991dadc0ba
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersliuche
bugs1123431
milestone39.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1123431 - Use case-insensitive search for filtering passwords on about:passwords. r=liuche
mobile/android/chrome/content/aboutPasswords.js
--- a/mobile/android/chrome/content/aboutPasswords.js
+++ b/mobile/android/chrome/content/aboutPasswords.js
@@ -251,17 +251,17 @@ let Passwords = {
 
   _openLink: function (clickEvent) {
     let url = clickEvent.currentTarget.getAttribute("link");
     let BrowserApp = gChromeWin.BrowserApp;
     BrowserApp.addTab(url, { selected: true, parentId: BrowserApp.selectedTab.id });
   },
 
   _filter: function(event) {
-    let value = event.target.value;
+    let value = event.target.value.toLowerCase();
     let logins = this._logins.filter((login) => {
       if (login.hostname.toLowerCase().indexOf(value) != -1) {
         return true;
       }
       if (login.username &&
           login.username.toLowerCase().indexOf(value) != -1) {
         return true;
       }