tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 3617e8c62575ff6afde4deebed5fe1d4f415320e
parent d5c2d6e66aa392fe8b20ccb399954d7bd4a1bd60
Author: Erik Nordin <enordin@mozilla.com>
Date:   Thu, 18 Dec 2025 15:42:04 +0000

Bug 2002127 - Part 03: Support icons in subpage headers r=hjones

This commit allows an icon to appear in a subpage header of the settings.

Differential Revision: https://phabricator.services.mozilla.com/D274218

Diffstat:
Mbrowser/components/preferences/widgets/setting-pane/setting-pane.mjs | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/browser/components/preferences/widgets/setting-pane/setting-pane.mjs b/browser/components/preferences/widgets/setting-pane/setting-pane.mjs @@ -10,6 +10,7 @@ import { MozLitElement } from "chrome://global/content/lit-utils.mjs"; * @property {string} [parent] The pane that links to this one. * @property {string} l10nId Fluent id for the heading/description. * @property {string[]} groupIds What setting groups should be rendered. + * @property {string} [iconSrc] Optional icon shown in the page header. */ export class SettingPane extends MozLitElement { @@ -113,6 +114,7 @@ export class SettingPane extends MozLitElement { return html` <moz-page-header data-l10n-id=${this.config.l10nId} + .iconSrc=${this.config.iconSrc} .backButton=${this.isSubPane} @navigate-back=${this.goBack} ></moz-page-header>