Updated bookmarks sidebar panel: long titles overflow the panel and folders never show a tooltip
Categories
(Firefox :: Sidebar, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox-esr153 | --- | disabled |
| firefox152 | --- | disabled |
| firefox153 | --- | disabled |
| firefox154 | --- | fixed |
People
(Reporter: Gabri, Assigned: Gabri)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression, Whiteboard: [fidefe-sidebar])
Attachments
(2 files, 1 obsolete file)
This bug tracks two related regressions in the updated bookmarks
sidebar panel introduced by bug 2019583. They share the same root
files and the same release-channel exposure, so they're filed
together.
Steps to reproduce
- Set
sidebar.revampandsidebar.updatedBookmarks.enabledto
true (the latter is the default on Nightly). - Open the bookmarks sidebar.
- Make the sidebar narrow enough that long titles wouldn't fit on
one line, or bookmark a page with a deliberately long title.
Actual behaviour
A. Bookmark and folder titles render in full and overflow the panel;
the row width exceeds the sidebar width and the text is painted
over the browser area. No ellipsis appears.
B. Hovering a folder (expanded <details><summary> or empty
<div class="bookmark-folder-label">) never shows a tooltip, even
when the title is cropped.
C. The OS default text I-beam cursor appears over the folder text
even though the element is clickable.
Expected behaviour
A. Titles should be truncated to the panel width using the standard
.text-truncated-ellipsis treatment (text-overflow: ellipsis).
B. Cropped folder titles should show a native tooltip with the full
title, matching the legacy XUL sidebar (tree.isCellCropped +
bhTooltip) and the URL rows in the new sidebar.
C. The cursor over folder rows should be a pointer.
Root cause
- sidebar-bookmark-list.css overrides the base fxview grid with
grid-template-columns: unseton .fxview-tab-list and virtual-list,
while every row/folder element still hasgrid-column: span 9.
With no explicit columns those spans materialise as implicit
auto-sized tracks that grow to max-content, so the rows expand to
fit the text and text-overflow can never trigger. - The compact rule in fxview-tab-row.css uses
grid-template-columns: min-content auto.autois essentially
minmax(min-content, max-content), so the title column cannot
shrink below its longest word, leaving long single words to
overflow. - SidebarBookmarkRow.tooltipText in sidebar-bookmark-list.mjs returns
null whenurlis empty, so thetitleattribute is never set on
folder-style rows. <summary> and.bookmark-folder-labelhave no
tooltip wiring at all. details summary, .bookmark-folder-labelhave nocursorrule.
While text was overflowing this was masked; once cropping is
re-enabled the default text I-beam becomes visible.
Fix
- sidebar-bookmark-list.css: give both grid containers explicit
shrinkable tracks (grid-template-columns: minmax(0, 1fr); grid-auto-columns: minmax(0, 1fr);). Add
cursor: pointer; user-select: none;to
details summary, .bookmark-folder-label. - fxview-tab-row.css: in the compact row template, change the title
column fromautotominmax(0, 1fr)so single long words can be
truncated. - sidebar-bookmark-list.mjs: add
#updateFolderTooltip(e, title)
that, on mouseenter, setsel.title = titlewhen
el.scrollWidth > el.clientWidthand removes the attribute
otherwise. Wire@mouseenteron both the <summary> and the
.bookmark-folder-labeltemplates.
Notes
- Not visible on 151+ release/devedition/beta because
sidebar.updatedBookmarks.enableddefaults to false there; in
those channels the bookmarks sidebar still falls back to the
legacy bookmarksSidebar.xhtml. - Regression introduced when the file was first added (commit
c207ea89352e — bug 2019583, Phabricator D288557, landed in
151.0b1, March 2026).
| Assignee | ||
Updated•13 days ago
|
Comment 1•13 days ago
|
||
Set release status flags based on info from the regressing bug 2019583
| Assignee | ||
Comment 2•13 days ago
|
||
Updated•13 days ago
|
Updated•12 days ago
|
Updated•12 days ago
|
Comment 3•12 days ago
•
|
||
Ah I was testing with bookmark items, but I do see the issue with bookmark folders
Comment 4•12 days ago
|
||
Updated•12 days ago
|
| Assignee | ||
Comment 5•12 days ago
|
||
Before and after patch on Firefox 154 nightly build
Updated•12 days ago
|
Updated•12 days ago
|
Comment 7•12 days ago
|
||
| bugherder | ||
Description
•