Bug 951658 - Kill the inspector front even if walker.release() failed. r=pbrosset

This commit is contained in:
Paul Rouget 2013-12-18 12:41:28 -05:00
parent 4bae8066d9
commit 0d0b379772
2 changed files with 6 additions and 2 deletions

View File

@ -515,7 +515,11 @@ InspectorPanel.prototype = {
if (this.walker) {
this.walker.off("new-root", this.onNewRoot);
this._destroyPromise = this.walker.release()
.then(() => this._inspector.destroy())
.then(() => this._inspector.destroy(),
(e) => {
console.error("Walker.release() failed: " + e);
return this._inspector.destroy();
})
.then(() => {
this._inspector = null;
}, console.error);

View File

@ -1058,7 +1058,7 @@ let Front = Class({
// Remaining packets must be responses.
if (this._requests.length === 0) {
let msg = "Unexpected packet from " + this.actorID + ", " + packet.type;
let msg = "Unexpected packet " + this.actorID + ", " + JSON.stringify(packet);
let err = Error(msg);
console.error(err);
throw err;