Bug 561839 - import PlacesUtils.jsm instead of utils.js [r=mconnor]

Try the new PlacesUtils file before the old utils.js.
This commit is contained in:
Edward Lee 2010-05-04 12:14:48 -07:00
parent 2a2cbfbad2
commit 0c62a45494

View File

@ -46,7 +46,12 @@ const PARENT_ANNO = "weave/parent";
const PREDECESSOR_ANNO = "weave/predecessor";
const SERVICE_NOT_SUPPORTED = "Service not supported on this platform";
Cu.import("resource://gre/modules/utils.js");
try {
Cu.import("resource://gre/modules/PlacesUtils.jsm");
}
catch(ex) {
Cu.import("resource://gre/modules/utils.js");
}
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://weave/ext/Observers.js");
Cu.import("resource://weave/util.js");