rem: var prefsCore = XPAppCoresManager.Find("PrefsCore"); if (!prefsCore) { prefsCore = new PrefsCore(); if (prefsCore) { prefsCore.Init("PrefsCore"); } } if (prefsCore) { prefsCore.ShowWindow(window); } 
add: var prefwindow = Components.classes['component: prefwindow.showWindow("widgetglue.js", window, "chrome: 
context: function MsgPreferences() {    var prefsCore = XPAppCoresManager.Find("PrefsCore");    if (!prefsCore) {      prefsCore = new PrefsCore();      if (prefsCore) {        prefsCore.Init("PrefsCore");      }    }    if (prefsCore) {      prefsCore.ShowWindow(window);    }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/7298d48ea821f299435e1faa1b0a2d5d4d6084d4/widgetglue.js/clean/mailnews/base/resources/content/widgetglue.js