Open Bug 1412317 Opened 7 years ago Updated 1 year ago

DevTools sidebar onShown and onHidden events should be fired when switching to a different devtools panel

Categories

(WebExtensions :: Developer Tools, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: rpl, Unassigned)

Details

As mentioned in Bug 1341305 comment 30, on Firefox sidebar.onShown/onHidden are not currently fired when the currently selected devtools panel has been changes and the particular sidebar panel was the currently selected one (while on Chrome they are also fired in this scenario).
Priority: -- → P2
I want to add 2 bugs scenario related to this bug:

1. onHidden() keep fired when switch off from unrelated panel, the expected result is onHidden() should fired only if switch off from my extension panel.
2. onHidden doesn't fired when close devtools inspector window, either by click 'x' OR press F12 to close. It cause problem since no way to detect inspector window onClose() and remove listener to reduce memory/processing usage.
Assignee: nobody → lgreco
Product: Toolkit → WebExtensions
Priority: P2 → P3
Assignee: lgreco → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.