Bug 1142705 - Contacts sidebar doesn't remember the last selected address book after Bug 170270 checked in. r=mkmelin, a=rkent
authorSuyash Agarwal <syshagarwal@gmail.com>
Sat, 10 Oct 2015 06:34:00 +0200
changeset 26555 d108efa34154faeb8be46f8400898381085aacd7
parent 26554 6e294a71e9645aa3b687911090d55f91a4dec135
child 26556 d146d1fc50fa6be4412865a28b2c1c63043a78e4
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin, rkent
bugs1142705, 170270
Bug 1142705 - Contacts sidebar doesn't remember the last selected address book after Bug 170270 checked in. r=mkmelin, a=rkent
mail/components/addrbook/content/abCommon.js
--- a/mail/components/addrbook/content/abCommon.js
+++ b/mail/components/addrbook/content/abCommon.js
@@ -261,18 +261,16 @@ function InitCommonJS()
   gDirTree = document.getElementById("dirTree");
   abList = document.getElementById("addressbookList");
   gAddressBookBundle = document.getElementById("bundle_addressBook");
 
   // Make an entry for "All Address Books".
   if (abList) {
     abList.insertItemAt(0, gAddressBookBundle.getString("allAddressBooks"),
                         kAllDirectoryRoot + "?");
-    // Select the newly added entry.
-    abList.selectedIndex = 0;
   }
 }
 
 function AbDelete()
 {
   var types = GetSelectedCardTypes();
   if (types == kNothingSelected)
     return;