Bug 1118806 - Handle uncaught promise rejections in the storage inspector;r=pbrosset
☠☠ backed out by 246718a1cded ☠ ☠
authorEddy Bruël <ejpbruel@gmail.com>
Fri, 09 Jan 2015 15:26:54 +0100
changeset 248790 86ac3a19e456adb1f81100e0aba2c58004b6db32
parent 248789 6d2c3bd2ccc1a95233d371a64442307c16f92883
child 248791 0defe8745bb9f8fe021015377693d919c902ce32
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbrosset
bugs1118806
milestone37.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1118806 - Handle uncaught promise rejections in the storage inspector;r=pbrosset
browser/devtools/storage/ui.js
--- a/browser/devtools/storage/ui.js
+++ b/browser/devtools/storage/ui.js
@@ -76,17 +76,17 @@ this.StorageUI = function StorageUI(fron
 
   this.sidebar = this._panelDoc.getElementById("storage-sidebar");
   this.sidebar.setAttribute("width", "300");
   this.view = new VariablesView(this.sidebar.firstChild,
                                 GENERIC_VARIABLES_VIEW_SETTINGS);
 
   this.front.listStores().then(storageTypes => {
     this.populateStorageTree(storageTypes);
-  });
+  }).catch(Cu.reportError);
   this.onUpdate = this.onUpdate.bind(this);
   this.front.on("stores-update", this.onUpdate);
 
   this.handleKeypress = this.handleKeypress.bind(this);
   this._panelDoc.addEventListener("keypress", this.handleKeypress);
 
   this._telemetry = new Telemetry();
   this._telemetry.toolOpened("storage");