Bug 813476 - Enabling offline support for CalDAV calendar breaks dialogs or makes calendar disappear. r=mmecca
authorPhilipp Kewisch <mozilla@kewis.ch>
Thu, 29 Nov 2012 13:16:17 +0100
changeset 14803 d496343ae08b373612c5984d0a20f26d4c9a3319
parent 14802 7301f1cf35e0a4f85c85f34b0219823c05e32bbd
child 14804 d9ae0b70e07415d5cef28d671f79d3811614b8c4
push id867
push userbugzilla@standard8.plus.com
push dateMon, 01 Apr 2013 20:44:27 +0000
treeherdercomm-beta@797726b8d244 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmmecca
bugs813476
Bug 813476 - Enabling offline support for CalDAV calendar breaks dialogs or makes calendar disappear. r=mmecca
calendar/base/src/calCalendarManager.js
calendar/base/src/calUtils.js
--- a/calendar/base/src/calCalendarManager.js
+++ b/calendar/base/src/calCalendarManager.js
@@ -833,16 +833,17 @@ calMgrCalendarObserver.prototype = {
             case "readOnly":
                 this.calMgr.mReadonlyCalendarCount += (aValue ? 1 : -1);
                 break;
             case "refreshInterval":
                 this.calMgr.setupRefreshTimer(aCalendar);
                 break;
             case "cache.enabled":
                 this.changeCalendarCache.apply(this, arguments);
+                break;
             case "disabled":
                 if (!aValue && aCalendar.canRefresh) {
                     aCalendar.refresh();
                 }
                 break;
         }
     },
 
--- a/calendar/base/src/calUtils.js
+++ b/calendar/base/src/calUtils.js
@@ -1260,19 +1260,18 @@ function calListenerBag(iid) {
 }
 calListenerBag.prototype = {
     __proto__: calInterfaceBag.prototype,
 
     notify: function calListenerBag_notify(func, args) {
         function notifyFunc(iface) {
             try {
                 iface[func].apply(iface, args ? args : []);
-            }
-            catch (exc) {
-                Components.utils.reportError(exc + " STACK: " + STACK());
+            } catch (exc) {
+                Components.utils.reportError(exc + "\nSTACK: " + exc.stack);
             }
         }
         this.mInterfaces.forEach(notifyFunc);
     }
 };
 
 function sendMailTo(aRecipient, aSubject, aBody) {
     let msgParams = Components.classes["@mozilla.org/messengercompose/composeparams;1"]