Impossible to debug extension popups with new about:debugging
Categories
(DevTools :: about:debugging, task, P2)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
What were you doing?
Please tell us what site you were on, and what steps led to the error you are reporting
- Install a webextension with a popup (eg https://addons.mozilla.org/en-US/firefox/addon/myqonly/ )
- Open about:debugging
- Click [inspect] for the extension
- Disable popup auto-hide
- Open the extension's popup
- Select the popup's frame in the toolbox frame chooser
What happened?
The frame chooser popup never disappears and you can't interact with the about:devtools-toolbox tab anymore.
What should have happened?
We should have a way to disable popup auto hide only for the extension we are debugging, so that it doesn't affect the toolbox? Or about:devtools-toolbox should be isolated from this setting?
Anything else we should know?
This used to "work" when devtools' was spawning a new firefox instance to create the "addon debugging toolbox". Since we switched to use a toolbox living in the same firefox as the extension, the toolbox also gets affected by the "Disable popup autohide" toggle.
Assignee | ||
Comment 1•5 years ago
|
||
Luca, do you have any bug already filed to improve the UX of extension popup debugging? Anything that would be relevant here?
Comment 3•5 years ago
|
||
Comment 4•5 years ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #1)
Luca, do you have any bug already filed to improve the UX of extension popup debugging? Anything that would be relevant here?
I took a look if there is any existing bug filed related to the UX of the extension popup debugging, but the only issues related to the behaviors of the "popup autohide toggle button" that I found is Bug 1392072 ("When popup autohide is off page actions don't hide when clicking them").
(Nevertheless I'm still pretty sure that we have been discussing about it before in some other bugzilla issues, e.g. about including a "Inspect" action in the context menu for the extension popup windows, which I think Chrome provides as the only way to open the developer tools on an extension window).
An alternative approach may be to
- set the
noautohide
property only on the popups related to the extension targeted by the "addon debugging toolbox" (instead of globally using the"ui.popup.noautohide"
preference) - and then hide those popups when the related browserAction/pageAction action is clicked again (as also suggested in Bug 1392072), or when the extension is shutting down
- and remove the
noautohide
property from the extension popups when the toolbox is destroyed
Assignee | ||
Comment 5•5 years ago
|
||
For now I propose we stop applying the autohide to DevTools HTML tooltips and figure out a fix in a follow up.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
Comment 9•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•