Bug 1340529 - Fix shown/hidden events for a devtools_panel toggled from toolbox preferences. r=kmag
MozReview-Commit-ID: H81qwCEoaf9
This commit is contained in:
@@ -44,6 +44,13 @@ class ChildDevToolsPanel extends EventEmitter {
|
||||
if (view.viewType === "devtools_panel" &&
|
||||
view.devtoolsToolboxInfo.toolboxPanelId === this.id) {
|
||||
this._panelContext = view;
|
||||
|
||||
// Reset the cached _panelContext property when the view is closed.
|
||||
view.callOnClose({
|
||||
close: () => {
|
||||
this._panelContext = null;
|
||||
},
|
||||
});
|
||||
return view;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user