Bug 1142705 - Contacts sidebar doesn't remember the last selected address book after Bug 170270 checked in. r=mkmelin
authorSuyash Agarwal <syshagarwal@gmail.com>
Sat, 10 Oct 2015 06:34:00 +0200
changeset 18616 2e8ee22712e13f32f180f8889492927c2af9e390
parent 18615 34adda5688cb1112d405d22c6082abebbf61ee60
child 18617 8e6a6631f9084364683abc7e8f4c83c9e9ffc2eb
push id11399
push useraleth@instantbird.org
push dateFri, 20 Nov 2015 19:44:49 +0000
treeherdercomm-central@2e8ee22712e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs1142705, 170270
Bug 1142705 - Contacts sidebar doesn't remember the last selected address book after Bug 170270 checked in. r=mkmelin
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;