Bug 1261311 - Fix storage inspector promise rejection syntax error r=mratcliffe
authorMichael Ratcliffe <mratcliffe@mozilla.com>
Fri, 01 Apr 2016 16:32:35 +0100
changeset 291396 b73dfc2916f959611cc90ee906678a5bf11a0b5f
parent 291395 f82243c637f027297dfa2b79545aeeed34088d8d
child 291397 24134582d0ce49abdb224820c95e5ae5dae60174
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmratcliffe
bugs1261311
milestone48.0a1
Bug 1261311 - Fix storage inspector promise rejection syntax error r=mratcliffe Should have been a catch.
devtools/client/storage/ui.js
--- a/devtools/client/storage/ui.js
+++ b/devtools/client/storage/ui.js
@@ -148,17 +148,17 @@ StorageUI.prototype = {
   },
 
   makeFieldsEditable: function() {
     let actor = this.getCurrentActor();
 
     if (typeof actor.getEditableFields !== "undefined") {
       actor.getEditableFields().then(fields => {
         this.table.makeFieldsEditable(fields);
-      }).then(() => {
+      }).catch(() => {
         // Do nothing
       });
     } else if (this.table._editableFieldsEngine) {
       this.table._editableFieldsEngine.destroy();
     }
   },
 
   editItem: function(eventType, data) {