Bug 813476 - Enabling offline support for CalDAV calendar breaks dialogs or makes calendar disappear. r+a=mmecca
authorPhilipp Kewisch <mozilla@kewis.ch>
Thu, 29 Nov 2012 13:16:17 +0100
changeset 13619 cdeed7b9449b7eef0293064823bfcf3a22a97dac
parent 13618 b1d4f46d856f7ef0209914a8b82e9b63ab92598b
child 13620 744ed601b22ad8b58a5f67eb6023788c3ac6420c
push id33
push usermatthew.mecca@gmail.com
push dateFri, 08 Feb 2013 22:30:17 +0000
bugs813476
Bug 813476 - Enabling offline support for CalDAV calendar breaks dialogs or makes calendar disappear. r+a=mmecca
calendar/base/src/calCalendarManager.js
calendar/base/src/calUtils.js
--- a/calendar/base/src/calCalendarManager.js
+++ b/calendar/base/src/calCalendarManager.js
@@ -836,16 +836,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
@@ -1354,19 +1354,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) {