rem: if (!prefLocked && !mapiRegistry.isDefaultMailClient) 
add: if (!prefLocked) 
context: function showMailIntegrationDialog() {    var mapiRegistry = null;    try {        var mapiRegistryProgID = "@mozilla.org/mapiregistry;1"         if (mapiRegistryProgID in Components.classes) {          mapiRegistry = Components.classes[mapiRegistryProgID].getService(Components.interfaces.nsIMapiRegistry);        }    }    catch (ex) {     }    // showDialog is TRUE only if we did not bring up this dialog already    // and we are not the default mail client    var prefLocked = false;    if (mapiRegistry && mapiRegistry.showDialog) {        const prefbase = "system.windows.lock_ui.";        try {            var prefService = Components.classes["@mozilla.org/preferences-service;1"]                          .getService()                          .QueryInterface(Components.interfaces.nsIPrefService);            var prefBranch = prefService.getBranch(prefbase);                    if (prefBranch && prefBranch.prefIsLocked("defaultMailClient")) {                prefLocked = true;                mapiRegistry.isDefaultMailClient = prefBranch.getBoolPref("defaultMailClient") ;            }        }        catch (ex) {}        try {          if (!prefLocked && !mapiRegistry.isDefaultMailClient)            mapiRegistry.showMailIntegrationDialog(window /* parent window */);        }        catch (ex) {          dump("mapi code failed:  " + ex + "\n");        }    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/17acba2405f7639d543b08dfced4b8881fe5b75b/accountUtils.js/buggy/mailnews/base/prefs/resources/content/accountUtils.js