Bug 1261311 - Fix storage inspector promise rejections r=mratcliffe
authorMichael Ratcliffe <mratcliffe@mozilla.com>
Fri, 01 Apr 2016 11:00:06 +0100
changeset 291393 02e0770a169643107e35465f690c46f160fca670
parent 291392 21be9fc9356d9ee4f396a5263b0aa1b47266eb8a
child 291394 68be59c75e1ed15a2a6ea6ee1c3998ee9a66cc7a
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 rejections r=mratcliffe Hide the errors for now. MozReview-Commit-ID: Fj1wYvZ4UFx
devtools/client/storage/ui.js
--- a/devtools/client/storage/ui.js
+++ b/devtools/client/storage/ui.js
@@ -165,16 +165,18 @@ StorageUI.prototype = {
   },
 
   makeFieldsEditable: function() {
     let actor = this.getCurrentActor();
 
     if (typeof actor.getEditableFields !== "undefined") {
       actor.getEditableFields().then(fields => {
         this.table.makeFieldsEditable(fields);
+      }).then(() => {
+        // Do nothing
       });
     } else if (this.table._editableFieldsEngine) {
       this.table._editableFieldsEngine.destroy();
     }
   },
 
   editItem: function(eventType, data) {
     let actor = this.getCurrentActor();