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 22215 b88229610b41ce2f7d8abff4f1e91646191aff76
parent 22214 9abccdd1e73ea36675b55c7eefef81f4e87e4ed5
child 22216 f6fad13451b014f1cd458e0b94e92ee2bda49d17
child 22217 102c9fb62f8283ed7ddc494010f63abe3394468d
push id72
push userkent@caspia.com
push dateWed, 16 Dec 2015 21:02:50 +0000
treeherdercomm-esr38@b88229610b41 [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;