Move ConfirmationHint into its own component directory
Categories
(Toolkit :: UI Widgets, task)
Tracking
()
People
(Reporter: florian, Unassigned)
References
Details
ConfirmationHint is defined as a window global in browser/base/content/browser.js (about 150 lines), its markup is the #confirmation-hint-wrapper template in browser/base/content/main-popupset.inc.xhtml, and its styles are 16 rules in browser/themes/shared/customizableui/panelUI-shared.css. The three pieces of one widget sit in three unrelated places, and there is no obvious home for a test of the mechanism itself.
Proposed by dao in D317400: move the whole widget to browser/components/confirmationhint/, with a colocated tests/browser/, bringing the markup and the styles along so it lives in one place. browser/modules/ is not the right destination — it is a flat bucket of window-agnostic modules with nowhere to put the markup or the CSS.
Worth knowing before picking this up: ConfirmationHint is a window global today, so moving it to a module changes its call sites. Consumers include bookmarks, sync send-tab, IP Protection, private browsing, tab groups, form autofill and password manager, plus nine test files that assert on the hint. The CSS move also touches Firefox :: Theme.
Bug 2062137 adds browser/base/content/test/browser-confirmationHint/ for tests of the mechanism itself, with a comment at the top of its browser.toml scoping it to that. That directory should become browser/components/confirmationhint/tests/browser/ as part of this work, and the comment is then unnecessary
Updated•3 months ago
|
Comment 1•1 month ago
|
||
The Bugbug bot thinks this bug should belong to the 'Toolkit::UI Widgets' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Description
•