--- a/calendar/base/content/calendar-chrome-startup.js
+++ b/calendar/base/content/calendar-chrome-startup.js
@@ -72,16 +72,18 @@ async function commonInitCalendar() {
* calendar support refreshes (i.e. the "onLoad" notification) or when none
* are active. In specific cases such as for file-based ICS calendars can
* happen, the initial "onLoad" will already have been triggered at this
* point (see bug 714431 comment 29). We thus inconditionnally invoke
* calendarUpdateNewItemsCommand until somebody writes code that enables the
* checking of the calendar readiness (getProperty("ready") ?).
*/
calendarUpdateNewItemsCommand();
+
+ dump("FINISH: " + Date.now() + "\n");
}
/**
* Common unload steps for calendar chrome windows.
*/
function commonFinishCalendar() {
// Unload the calendar manager
unloadCalendarManager();
--- a/calendar/providers/composite/calCompositeCalendar.js
+++ b/calendar/providers/composite/calCompositeCalendar.js
@@ -382,16 +382,17 @@ calCompositeCalendar.prototype = {
return null;
}
if (this.mStatusObserver) {
if (this.mStatusObserver.spinning == Ci.calIStatusObserver.NO_PROGRESS) {
this.mStatusObserver.startMeteors(Ci.calIStatusObserver.UNDETERMINED_PROGRESS, -1);
}
}
let cmpListener = new calCompositeGetListenerHelper(this, aListener, aCount);
+ dump(`COMPOSITE START: ${Date.now()}\n`)
for (let calendar of enabledCalendars) {
try {
cmpListener.opGroup.add(calendar.getItems(aItemFilter,
aCount,
aRangeStart,
aRangeEnd,
cmpListener));
@@ -492,16 +493,17 @@ calCompositeGetListenerHelper.prototype
// we're done here.
this.mFinished = true;
this.opGroup.notifyCompleted();
this.mRealListener.onOperationComplete(this,
aStatus,
calIOperationListener.GET,
null,
null);
+ dump(`COMPOSITE END: ${Date.now()}\n`)
}
},
onGetResult: function(aCalendar, aStatus, aItemType, aDetail, aCount, aItems) {
if (!this.mRealListener) {
// has been cancelled, ignore any providers firing on this...
return;
}
--- a/mail/components/mailGlue.js
+++ b/mail/components/mailGlue.js
@@ -40,16 +40,17 @@ let ACTORS = {
function MailGlue() {
XPCOMUtils.defineLazyGetter(this, "_sanitizer",
function() {
let sanitizerScope = {};
Services.scriptloader.loadSubScript("chrome://messenger/content/sanitize.js", sanitizerScope);
return sanitizerScope.Sanitizer;
});
+ dump("START: " + Date.now() + "\n");
this._init();
}
MailGlue.prototype = {
// init (called at app startup)
_init() {
Services.obs.addObserver(this, "xpcom-shutdown");
Services.obs.addObserver(this, "final-ui-startup");