Bug 1165002 - do not load libical when icaljs is enabled by default. r/a=philipp
authorStefan Sitter <ssitter@gmail.com>
Tue, 19 May 2015 15:01:44 +0200
changeset 26137 10d35a0ece85c208a6815d0371f3bf025d3f7856
parent 26136 0a2db1c99df9a92bf5baf06b3790ee00a51cf881
child 26138 6fef697966562d06be1740ad138bfe71bec0624f
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1165002
Bug 1165002 - do not load libical when icaljs is enabled by default. r/a=philipp
calendar/base/backend/calBackendLoader.js
--- a/calendar/base/backend/calBackendLoader.js
+++ b/calendar/base/backend/calBackendLoader.js
@@ -33,20 +33,18 @@ calBackendLoader.prototype = {
         // Nothing to do here, just need the entry so this is instanciated
     },
 
     loadBackend: function loadBackend() {
         if (this.loaded) {
             return;
         }
 
-        let backend = "libical";
-        if (Services.prefs.prefHasUserValue("calendar.icaljs")) {
-            backend = Services.prefs.getBoolPref("calendar.icaljs") ? "icaljs" : "libical";
-        }
+        let backend = Services.prefs.getBoolPref("calendar.icaljs") ? "icaljs" : "libical";
+
         let uri = Services.io.getProtocolHandler("resource")
                           .QueryInterface(Components.interfaces.nsIResProtocolHandler)
                           .getSubstitution("calendar");
 
         let file = Services.io.getProtocolHandler("file")
                            .QueryInterface(Components.interfaces.nsIFileProtocolHandler)
                            .getFileFromURLSpec(uri.spec);