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 056ae0b603
commit 34b6d6c000

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() {}