Files
sousa-gecko/devtools/startup
glob 131dfcaa10 Bug 1407718 - Show the subview indicator on the Developer button in the overflow menu r=Gijs,devtools-reviewers,bomsy
The subview chevron (the subviewbutton-nav class) is only added to view
widgets created with SOURCE_BUILTIN. The Developer button is created by
devtools through CustomizableUI.createWidget(), which always marked widgets
as SOURCE_EXTERNAL, so it never got the indicator in the overflow menu even
though it opens a subview.

Add an optional source argument to the public and internal createWidget()
(defaulting to SOURCE_EXTERNAL so existing callers are unaffected), and have
DevToolsStartup create the Developer button with SOURCE_BUILTIN.

Differential Revision: https://phabricator.services.mozilla.com/D311830
2026-07-15 06:09:19 +00:00
..