rem: var updateTypes = Components.classes["@mozilla.org/supports-PRUint8;1"]. createInstance(Components.interfaces.nsISupportsPRUint8); updateTypes.data = Components.interfaces.nsIUpdateItem.TYPE_ADDON; var showMismatch = Components.classes["@mozilla.org/supports-PRBool;1"]. createInstance(Components.interfaces.nsISupportsPRBool); showMismatch.data = false; var ary = Components.classes["@mozilla.org/supports-array;1"]. createInstance(Components.interfaces.nsISupportsArray); ary.AppendElement(updateTypes); ary.AppendElement(showMismatch);  var features = "chrome,centerscreen,dialog,titlebar"; const URI_EXTENSION_UPDATE_DIALOG = "chrome: var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"]. getService(Components.interfaces.nsIWindowWatcher); ww.openWindow(window, URI_EXTENSION_UPDATE_DIALOG, "", features, ary); 
add: var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]. getService(Components.interfaces.nsIWindowMediator); var manager = wm.getMostRecentWindow("Extension:Manager-extensions"); if (!manager) { const features = "chrome,centerscreen,dialog,titlebar"; const URI_EXTENSIONS_WINDOW = "chrome: openDialog(URI_EXTENSIONS_WINDOW, "", features, "updatecheck"); } else { manager.performUpdate(); manager.focus(); } 
context:   checkForAddonUpdates: function ()  {    var updateTypes =         Components.classes["@mozilla.org/supports-PRUint8;1"].        createInstance(Components.interfaces.nsISupportsPRUint8);    updateTypes.data = Components.interfaces.nsIUpdateItem.TYPE_ADDON;    var showMismatch =         Components.classes["@mozilla.org/supports-PRBool;1"].        createInstance(Components.interfaces.nsISupportsPRBool);    showMismatch.data = false;    var ary =         Components.classes["@mozilla.org/supports-array;1"].        createInstance(Components.interfaces.nsISupportsArray);    ary.AppendElement(updateTypes);    ary.AppendElement(showMismatch);    var features = "chrome,centerscreen,dialog,titlebar";    const URI_EXTENSION_UPDATE_DIALOG =       "chrome://mozapps/content/extensions/update.xul";    var ww =         Components.classes["@mozilla.org/embedcomp/window-watcher;1"].        getService(Components.interfaces.nsIWindowWatcher);    ww.openWindow(window, URI_EXTENSION_UPDATE_DIALOG, "", features, ary);    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5a6e3a0e7deda49a9ac3237c5a3d77e69e32f8e7/advanced.js/buggy/mail/components/preferences/advanced.js