bug 748085 - continue starting up webapp after exception initializing optional registry; r=felipe

This commit is contained in:
Myk Melez 2012-04-26 11:39:49 -07:00
parent cc809c129a
commit 35d755f0ac

View File

@ -9,8 +9,13 @@ const Cu = Components.utils;
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");
// Initialize DOMApplicationRegistry so it can receive and respond to messages
Cu.import("resource://gre/modules/Webapps.jsm");
// Initialize DOMApplicationRegistry so it can receive and respond to messages.
// We catch an exception here on the off chance the registry throws one, as we
// don't need it for most apps, and exceptions it throws shouldn't prevent apps
// from loading.
try {
Cu.import("resource://gre/modules/Webapps.jsm");
} catch(ex) {}
function CommandLineHandler() {}