mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 951658 - Kill the inspector front even if walker.release() failed. r=pbrosset
This commit is contained in:
parent
4bae8066d9
commit
0d0b379772
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user