Open Bug 1810724 Opened 3 years ago Updated 6 months ago

Locate DevTools in another app group on the taskbar

Categories

(DevTools :: General, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: Honza, Unassigned)

Details

Originally reported here:
https://connect.mozilla.org/t5/ideas/devtools-located-in-another-icon-on-the-taskbar/idi-p/22586

Firefox shows the taskbar icon for detached DevTools Toolbox like another window in the same app group, while Chrome create another app group separated in the taskbar.
In Chrome, folks can can easily know which one is the icon with the page and which one represents DevTools.

Honza

Some changes around the same code done in bug 1766636 (making the grouping more logical after we started grouping private windows separately). But, DevTools was grouped the same as regular Firefox before those changes.

Some notes from Ben Hearsum on Slack:

This should be possible, as it's controlled by AUMID. You can set this fairly simply with code like https://searchfox.org/mozilla-central/rev/a8187e40b492dff78e3d3225e652cc06f447484b/widget/windows/WinTaskbar.cpp#63, but the tricky part is that you need to set it before first paint to avoid the window moving between groups. We handle that for private windows around here, and you do the same for devtools if there's something in the nsWindow that you can use to identify a devtools window. If you happen to have a window that hasn't been painted yet, we have a helper function that will set whatever aumid you want (we use this to handle the initial window at startup, but I don't know if it will be applicable in your situation). I'm happy to help more if I can be useful.

A note from Gijs on Slack:

Yeah, I would like to have a second icon personally. I don't know if that is a universal thing.

Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.