Bug 979536 - Part 5: Fix reopening graphics tools. r=vporof

This commit is contained in:
J. Ryan Stinnett 2014-09-24 08:49:00 +02:00
parent e4fb87e8fe
commit 1e5d9a3d83
2 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,8 @@ CanvasDebuggerPanel.prototype = {
}
return this._destroyer = this.panelWin.shutdownCanvasDebugger().then(() => {
// Destroy front to ensure packet handler is removed from client
this.panelWin.gFront.destroy();
this.emit("destroyed");
});
}

View File

@ -66,6 +66,8 @@ ShaderEditorPanel.prototype = {
}
return this._destroyer = this.panelWin.shutdownShaderEditor().then(() => {
// Destroy front to ensure packet handler is removed from client
this.panelWin.gFront.destroy();
this.emit("destroyed");
});
}