Bug 907796 - Add error reporters to the Task.spawns within browser/components/customizableui. r=Gijs

This commit is contained in:
Jared Wein 2013-08-21 15:33:46 -04:00
parent b4373f0990
commit ce3ee937c1
3 changed files with 9 additions and 9 deletions

View File

@ -185,7 +185,7 @@ const PanelUI = {
CustomizableUI.registerMenuPanel(this.contents);
this.endBatchUpdate();
}
}.bind(this));
}.bind(this)).then(null, ERROR);
},
/**

View File

@ -166,7 +166,7 @@ CustomizeMode.prototype = {
this._customizing = true;
this._transitioning = false;
this.dispatchToolboxEvent("customizationready");
}.bind(this));
}.bind(this)).then(null, ERROR);
},
exit: function() {
@ -267,7 +267,7 @@ CustomizeMode.prototype = {
this._changed = false;
this._transitioning = false;
this.dispatchToolboxEvent("aftercustomization");
}.bind(this));
}.bind(this)).then(null, ERROR);
},
_doTransition: function(aEntering) {
@ -325,7 +325,7 @@ CustomizeMode.prototype = {
this.visiblePalette.appendChild(fragment);
this._stowedPalette = this.window.gNavToolbox.palette;
this.window.gNavToolbox.palette = this.visiblePalette;
}.bind(this));
}.bind(this)).then(null, ERROR);
},
//XXXunf Maybe this should use -moz-element instead of wrapping the node?
@ -366,7 +366,7 @@ CustomizeMode.prototype = {
}
this.visiblePalette.hidden = false;
this.window.gNavToolbox.palette = this._stowedPalette;
}.bind(this));
}.bind(this)).then(null, ERROR);
},
isCustomizableItem: function(aNode) {
@ -509,7 +509,7 @@ CustomizeMode.prototype = {
}
this.areas.push(target);
}
}.bind(this));
}.bind(this)).then(null, ERROR);
},
// TODO(bug 885575): Remove once CustomizeUI can handle moving wrapped widgets.
@ -536,7 +536,7 @@ CustomizeMode.prototype = {
_unwrapToolbarItems: function() {
return Task.spawn(function() {
this._unwrapToolbarItemsSync();
}.bind(this));
}.bind(this)).then(null, ERROR);
},
// TODO(bug 885575): Merge into _unwrapToolbarItems.
@ -587,7 +587,7 @@ CustomizeMode.prototype = {
this._updateResetButton();
this._showPanelCustomizationPlaceholders();
}.bind(this));
}.bind(this)).then(null, ERROR);
},
_onToolbarVisibilityChange: function(aEvent) {

View File

@ -177,5 +177,5 @@ function runTests(testAry, asyncCleanup) {
// actual exception is likely much more valuable, hence concatentating it.
ok(false, "Unexpected exception: " + ex + " With stack: " + ex.stack);
finish();
});
}).then(null, ERROR);
}