rem: var addrbookSession = Components.classes["@mozilla.org/addressbook/services/session;1"].getService().QueryInterface(Components.interfaces.nsIAddrBookSession); 
add: var addrbookSession = Components.classes["@mozilla.org/addressbook/services/session;1"] .getService(Components.interfaces.nsIAddrBookSession); 
context: function OnLoadAddressBook(){  gAddressBookBundle = document.getElementById("bundle_addressBook");  gSearchInput = document.getElementById("searchInput");  verifyAccounts(null); 	// this will do migration, if we need to.  top.addressbook = Components.classes["@mozilla.org/addressbook;1"].createInstance(Components.interfaces.nsIAddressBook);  InitCommonJS();  UpgradeAddressBookResultsPaneUI("mailnews.ui.addressbook_results.version");  //This migrates the LDAPServer Preferences from 4.x to mozilla format.  try {      gLDAPPrefsService = Components.classes["@mozilla.org/ldapprefs-service;1"].getService();             gLDAPPrefsService = gLDAPPrefsService.QueryInterface( Components.interfaces.nsILDAPPrefsService);                    } catch (ex) {dump ("ERROR: Cannot get the LDAP service\n" + ex + "\n");}  GetCurrentPrefs();  AddPrefObservers();  // FIX ME - later we will be able to use onload from the overlay  OnLoadCardView();  SetupAbCommandUpdateHandlers();  //workaround - add setTimeout to make sure dynamic overlays get loaded first  setTimeout('OnLoadDirTree()', 0);  // if the pref is locked disable the menuitem New->LDAP directory  if (gPrefs.prefIsLocked("ldap_2.disable_button_add"))    document.getElementById("addLDAP").setAttribute("disabled", "true");  // add a listener, so we can switch directories if  // the current directory is deleted  var addrbookSession = Components.classes["@mozilla.org/addressbook/services/session;1"].getService().QueryInterface(Components.interfaces.nsIAddrBookSession);  // this listener only cares when a directory is removed  addrbookSession.addAddressBookListener(gAddressBookAbListener, Components.interfaces.nsIAbListener.directoryRemoved);  var dirTree = GetDirTree();  dirTree.addEventListener("click",DirPaneClick,true);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/dee1fe6515127ec0453f2d173791e2e946009b91/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js