if (targetFront.isTopLevel) { const front = await targetFront.getFront("memory"); await front.attach(); this.initializer.updateFront(front); } } // DevToolPanel API destroy() { // Make sure this panel is not already destroyed. if (this._destroyed) { return; } this._destroyed = true; this._commands.targetCommand.unwatchTargets({ types: [this._commands.targetCommand.TYPES.FRAME], onAvailable: this._onTargetAvailable, }); this.initializer.destroy(); this.panelWin.gHeapAnalysesClient.destroy(); this.panelWin = null; this.emit("destroyed"); } } exports.MemoryPanel = MemoryPanel; PK