Bug 568691 - Convert existing JS components to use NSGetFactory and add manifest files for them. In a followup we will link the .manifest files together at packaging time. This patch was developed on Linux: Windows and Mac may require additional changes.

This commit is contained in:
Benjamin Smedberg
2010-06-22 12:59:15 -04:00
parent 8b5d6a8488
commit 4eb44d9d34
144 changed files with 593 additions and 1562 deletions

View File

@@ -57,16 +57,8 @@ nsSetDefaultBrowser.prototype = {
helpInfo: " -setDefaultBrowser Set this app as the default browser.\n",
classDescription: "Default Browser Cmdline Handler",
contractID: "@mozilla.org/browser/default-browser-clh;1",
classID: Components.ID("{F57899D0-4E2C-4ac6-9E29-50C736103B0C}"),
QueryInterface: XPCOMUtils.generateQI([Ci.nsICommandLineHandler]),
_xpcom_categories: [{
category: "command-line-handler",
entry: "m-setdefaultbrowser"
}]
}
};
function NSGetModule(compMgr, fileSpec) {
return XPCOMUtils.generateModule([nsSetDefaultBrowser]);
}
var NSGetFactory = XPCOMUtils.generateNSGetFactory([nsSetDefaultBrowser]);