mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 748085 - continue starting up webapp after exception initializing optional registry; r=felipe
This commit is contained in:
parent
056ae0b603
commit
34b6d6c000
@ -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() {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user