rem: SUPPRESS_ALARMS = getPref("calendar.wcap.suppress_alarms", true);  
context: function initWcapProvider(){    try {        // xxx todo: hack        // the master password prompt is currently not guarded against        // multiple prompt; this initializes/raises the pw db at early stage.        var passwordManager = Components.classes["@mozilla.org/passwordmanager;1"]                                        .getService(Components.interfaces.nsIPasswordManager);        var enumerator = passwordManager.enumerator;        if (enumerator.hasMoreElements())            enumerator.getNext(); // actually prompts...    }    catch (exc) {    }        try {                // ctors:        CalEvent = new Components.Constructor("@mozilla.org/calendar/event;1",                                              "calIEvent");        CalTodo = new Components.Constructor("@mozilla.org/calendar/todo;1",                                             "calITodo");        CalDateTime = new Components.Constructor("@mozilla.org/calendar/datetime;1",                                                 "calIDateTime");        CalDuration = new Components.Constructor("@mozilla.org/calendar/duration;1",                                                 "calIDuration");        CalPeriod = new Components.Constructor("@mozilla.org/calendar/period;1",                                               "calIPeriod");        Timer = new Components.Constructor("@mozilla.org/timer;1",                                           "nsITimer");                initLogging();                // some string resources:        g_privateItemTitle = calGetString("wcap", "privateItem.title.text");        g_confidentialItemTitle = calGetString("wcap", "confidentialItem.title.text");        g_busyItemTitle = calGetString("wcap", "busyItem.title.text");        g_busyPhantomItemUuidPrefix = ("PHANTOM_uuid_" + getUUID());        SUPPRESS_ALARMS = getPref("calendar.wcap.suppress_alarms", true);        CACHE_LAST_RESULTS = getPref("calendar.wcap.cache_last_results", 4);        CACHE_LAST_RESULTS_INVALIDATE = getPref("calendar.wcap.cache_last_results_invalidate", 120);    }    catch (exc) {        logError(exc, "error in init sequence");    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/226ef4b0cbc2fcbf7d3987aba62f24c1cfc41a37/calWcapCalendarModule.js/buggy/calendar/providers/wcap/calWcapCalendarModule.js