Name Description Size Coverage CI issues
browser-sidebar.js SidebarController handles logic such as toggling sidebar panels, dynamically adding menubar menu items for the View -> Sidebar menu, and provides APIs for sidebar extensions, etc. 98984 97 %
docs -
jar.mn 1876 -
metrics.yaml 24264 -
moz.build 863 -
sidebar-bookmark-list.css The base fxview grid template assumes a multi-column tab list; the sidebar is a single shrink-to-fit column. Use minmax(0, 1fr) on both explicit and implicit tracks so rows can shrink below their min-content width and the row text actually truncates with text-overflow: ellipsis. 5617 -
sidebar-bookmark-list.mjs A row in the sidebar bookmarks tree. @typedef {object} SidebarBookmarkItem @property {string} guid @property {string} title @property {string} [uri] @property {string} [url] @property {string} [icon] @property {number} type @property {SidebarBookmarkItem[]} [children] @property {boolean} [isPlaceContainer] @property {boolean} [isTagContainer] @property {boolean} [isTagsRoot] 25569 80 %
sidebar-bookmarks.html 1695 -
sidebar-bookmarks.mjs 47791 91 %
sidebar-customize.css 2627 -
sidebar-customize.html 1114 -
sidebar-customize.mjs 14117 98 %
sidebar-history.css 963 -
sidebar-history.html 1671 -
sidebar-history.mjs The date or site card whose heading opened the context menu, if any. @type {MozCard | null} 26043 96 %
sidebar-main.css --sidebar-launcher-button-size is set in the parent doc (browser/themes/shared/sidebar.css) so it can react to the document's uidensity attribute. 7125 -
sidebar-main.mjs Sidebar with expanded and collapsed states that provides entry points to various sidebar panels and sidebar extensions. 34390 94 %
sidebar-opentabs-preview.css stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens 2706 -
sidebar-opentabs-preview.mjs Preview of the most recently active tabs, shown on hover over the Open Tabs button in the sidebar launcher. 8129 82 %
sidebar-opentabs.css stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens 1717 -
sidebar-opentabs.html 1636 -
sidebar-opentabs.mjs 12713 91 %
sidebar-page.mjs Routes keydown events to the tree view controller. 9259 98 %
sidebar-panel-header.css Horizontal-tabs "hide-launcher" mode has no launcher to switch panels with, so the title is replaced by the sidebar-panel-switcher dropdown (which shows itself in this mode). 884 -
sidebar-panel-header.mjs Shared header showing the panel title and a close button. In horizontal-tabs "hide-launcher" mode the title is replaced by the sidebar-panel-switcher dropdown (which switches between panels), since there is no launcher to switch them with; this is toggled via CSS (see sidebar-panel-header.css). 3324 96 %
sidebar-panel-switcher.css The switcher is only meaningful in "hide-launcher" mode, where there is no launcher to switch panels with. It hides itself everywhere else. 1908 -
sidebar-panel-switcher.mjs A dropdown that switches between sidebar panels. Used by panels in horizontal-tabs "hide-launcher" mode, where there is no launcher to switch panels with. The element shows the current panel's name and, on click, lists the other panels to switch to. It hides itself (via CSS) outside that mode. Built-in panels set the `view` attribute to the command ID of the panel hosting it. Extension panels leave it unset, so they are identified by whichever panel the sidebar currently has open instead. 3007 100 %
sidebar-permissions-ui.mjs Handles sidebar permission UI elements. Creates and manages permission indicators in the sidebar. 10142 76 %
sidebar-permissions.mjs Get count of queued tab notifications 21362 77 %
sidebar-pins-promo.css TODO: This is a temporary fix for poor text color contrast with Windows HCM. See Bug 2084375. 4450 -
sidebar-pins-promo.mjs A promotional card for drag-to-pin tabs. It is only displayed in the expanded sidebar state to vertical tab users who do not have any pinned tabs. The card can be dismissed manually by clicking the X button. It is automatically dismissed by adding a pin via a context menu or by dragging the tab over the card and pinning. 6014 97 %
sidebar-syncedtabs.html 1884 -
sidebar-syncedtabs.mjs 14755 91 %
sidebar-tab-list.css 861 -
sidebar-tab-list.mjs The tree view controller that owns selection state for the page this list belongs to. @returns {SidebarTreeView} 11580 98 %
sidebar-tab-row.css inset-inline-start set to half of the favicon width to place it horizontally centered 5101 -
sidebar.css these illustrations need a larger width otherwise they look too small 5385 -
SidebarCollapsedWindows.sys.mjs Process-wide owner of the per-window collapsed state for the sidebar Open Tabs panel. State is keyed by the SessionStore window id (`SessionStore.getWindowId`) and persisted to the `sidebar.openTabsPanel.collapsedWindows` pref as a JSON object whose keys are window ids and whose values are `true` for collapsed cards. Entries are dropped when a window closes or when a hydration sweep finds an entry whose window is no longer open. Private windows never write to the pref. Consumers add a listener for the `CollapsedWindowsChanged` event and call `requestUpdate()` (or equivalent) on every dispatch. The pref is the single source of truth. 5475 -
SidebarManager.sys.mjs SidebarManager is a singleton that handles startup tasks like telemetry, adding listeners and updating sidebar-related preferences. 13225 -
SidebarState.sys.mjs What each `sidebar.visibility` value means for the launcher. The values are orientation-exclusive, so a mode implies the tab orientation it belongs to. @typedef {object} VisibilityMode @property {"always" | "user" | "never"} launcherVisibility What governs whether the launcher shows: it always shows, it is the user's to show and hide with the toolbar button, or it never shows. This also says what the toolbar button does in this mode - toggle the launcher's expanded state, toggle the launcher, or toggle the panel. @property {boolean} expandable Whether the launcher has an expanded state at all. Only vertical tabs do. @property {boolean} [userVisibleOnEnter] Where the user's choice starts when this mode is entered. Only meaningful for modes whose launcher is the user's to control. @property {boolean} [expandedOnEnter] Whether the launcher is expanded when this mode is entered. @property {boolean} [userVisibleWhenUnknown] What restored state that says nothing about the launcher means. Left unset by the modes that would rather keep the launcher as the window has it. 30456 -
SidebarTreeView.sys.mjs Tree view node which can be focused via keyboard navigation. @typedef {object} TreeViewNode @property {"card-summary" | "folder" | "row" | "separator" | "empty-folder"} type @property {Element} [list] - The parent `<tab-list>`. @property {Element} [card] - The parent `<moz-card>`. @property {object} [item] - The object from `tabItems`. @property {number} [index] - The item's index within its list's `tabItems`. @property {Element} domNode - The rendered DOM element, or null if not rendered. 18113 -
<1%tests -
triage.json 1656 -