Bug 986000 - Fix addonsListTmp undefined error in XPIProviderUtils.js. r=Mossop
authorIrving Reid <irving@mozilla.com>
Thu, 20 Mar 2014 13:41:42 -0400
changeset 174761 2ff265d0eb77b641497e7d44a00b320ec1432e72
parent 174760 9788a3f558e667ec274cbed4f0cfcc928e9f7031
child 174762 29d33fe0614c16d5aa4b871e31fa2fd4d56e9657
push id5835
push userryanvm@gmail.com
push dateFri, 21 Mar 2014 17:44:18 +0000
treeherderfx-team@675945ee2609 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs986000
milestone31.0a1
Bug 986000 - Fix addonsListTmp undefined error in XPIProviderUtils.js. r=Mossop
toolkit/mozapps/extensions/internal/XPIProviderUtils.js
--- a/toolkit/mozapps/extensions/internal/XPIProviderUtils.js
+++ b/toolkit/mozapps/extensions/internal/XPIProviderUtils.js
@@ -1477,18 +1477,17 @@ this.XPIDatabase = {
         var fos = FileUtils.openFileOutputStream(addonsListTmp);
         fos.write(text, text.length);
         fos.close();
         addonsListTmp.moveTo(addonsListTmp.parent, FILE_XPI_ADDONS_LIST);
 
         Services.prefs.setCharPref(PREF_EM_ENABLED_ADDONS, enabledAddons.join(","));
       }
       catch (e) {
-        logger.error("Failed to write add-ons list to " + addonsListTmp.parent + "/" +
-              FILE_XPI_ADDONS_LIST, e);
+        logger.error("Failed to write add-ons list to profile directory", e);
         return false;
       }
     }
     else {
       if (addonsList.exists()) {
         logger.debug("Deleting add-ons list");
         try {
           addonsList.remove(false);