rem: try { var mapiRegistry = Components.classes[ "@mozilla.org/mapiregistry;1" ].getService( Components.interfaces.nsIMapiRegistry ); } catch(ex){ mapiRegistry = null; } 
add: var mapiRegistry = getMapiRegistry(); if (parent.mapiReg.isDefaultMailClient != parent.mapiPref.isDefaultMailClient) mapiRegistry.isDefaultMailClient = parent.mapiPref.isDefaultMailClient; 
context: function onOK(){    try {        var mapiRegistry = Components.classes[ "@mozilla.org/mapiregistry;1" ].getService( Components.interfaces.nsIMapiRegistry );    }    catch(ex){        mapiRegistry = null;    }     if (mapiRegistry && ("mapiPref" in parent)) {      if (mapiRegistry.isDefaultMailClient != parent.mapiPref.isDefaultMailClient)        mapiRegistry.isDefaultMailClient = parent.mapiPref.isDefaultMailClient ;            if ("isDefaultNewsClient" in parent.mapiPref)      {        if (mapiRegistry.isDefaultNewsClient != parent.mapiPref.isDefaultNewsClient)          mapiRegistry.isDefaultNewsClient = parent.mapiPref.isDefaultNewsClient;      }    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e809385aa0a88c0df640df244f8a706bc9b61141/pref-mailnewsOverlay.js/clean/mailnews/mapi/resources/content/pref-mailnewsOverlay.js