[meta] Remove browser.nova.enabled checks from Private Browsing code before the Nova pref is removed
Categories
(Firefox :: Private Browsing, task, P1)
Tracking
()
People
(Reporter: kkim, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
(Keywords: meta, Whiteboard: [fidefe-nova-cleanup])
Tracker for removing the Nova pref (browser.nova.enabled) from Private Browsing code. The pref has been locked on since Fx162 and is due to be removed at the end of the Fx164 Nightly cycle (Jan 7). Each piece below should keep the Nova path, delete the pre-Nova (Proton) path, and rename Nova-specific identifiers where it makes sense.
Remaining references (Please confirm, this may not be complete):
browser/components/privatebrowsing/content/aboutPrivateBrowsing.js, around lines 44–51: Nova vs legacy promo layout.aboutPrivateBrowsing.js, around lines 412–451: the private window redesign branch requiresbrowser.nova.enabledas well asbrowser.privateWindowRedesign.enabled, and the Nova info strings are set here.browser/themes/shared/privatebrowsing/aboutPrivateBrowsing.css, from around line 496: the@media -moz-pref("browser.nova.enabled")block (fox tail background, info section layout).browser/themes/shared/icons/privateBrowsing.svg, line 8: Nova vs Proton icon.- Tests under
browser/components/privatebrowsing/test/browser/that still setbrowser.nova.enabled, for examplebrowser_privatebrowsing_about_kit_intro.jsandbrowser_privatebrowsing_about_nova_promo.js. - To confirm: bug 2063346 described the private browsing info panel in
browser/base/content/main-popupset.inc.xhtmlas gated on the pref. No reference turns up there now, so it may already be cleaned up. - Bug 2094325: private browsing content area background (Tabbed Browser), already on the Nova cleanup meta.
Why the order matters: aboutPrivateBrowsing.js reads the pref with RPMGetBoolPref("browser.nova.enabled", false), so a removed pref reads as off. If the pref goes before these checks do, private windows fall back to the pre-Nova promo, strings, styles and icon. For the redesign, the exposure and intro-animation telemetry would keep recording while the "Private Window basics" link and new subheader disappear.
Related:
- Bug 2082909: removed the Nova-off test coverage (fixed).
- Open polish bugs that live inside the Nova-gated CSS and may be easiest to fix alongside the cleanup: bug 2049080, bug 2071080, bug 2059378.
Done when: no references to browser.nova.enabled remain in Private Browsing code or tests, with no visual or behavior change compared with today's browser.nova.enabled = true.
Updated•1 day ago
|
Updated scope after a full codebase sweep (searchfox, 2026-12-04). The original description covered only the Private Browsing folder; these items elsewhere also tie private windows to browser.nova.enabled. Engineering to confirm before per-file bugs are filed.
- Private window theme:
toolkit/modules/LightweightThemeConsumer.sys.mjs(around lines 353–366) only substitutes the built-in private-window theme whenbrowser.nova.enabledis true, and its pref getter defaults tofalse. If the pref is removed first, private windows lose that theme. Highest risk. Related: bug 2062412. - Private browsing indicator:
browser/themes/shared/browser-shared.css(around lines 991 and 1020) hides the labeled indicator and shows the icon-only button only under Nova. The labeled-indicator markup inprivate-browsing-indicator.inc.xhtmlbecomes dead code. - Update banner:
browser/components/customizableui/content/panelUI.js(around lines 1309–1316) drops the update-restart banner description in private windows only under Nova. toolkit/modules/RemotePageAccessManager.sys.mjsline 197 lets about:privatebrowsing read the pref; remove it onceaboutPrivateBrowsing.jsis cleaned up.- Test:
toolkit/components/extensions/test/browser/browser_ext_themes_private_nova.js. - Already tracked elsewhere:
privateBrowsing.svgis covered by bug 2100557 (dual Proton/Nova icon cleanup), now added as a dependency.
Open question: whether to rename the about-private-browsing-nova-* string IDs in aboutPrivateBrowsing.ftl. Renaming matches the goal of no Nova references, but it forces new IDs and retranslation. Keeping them seems safer before Jan 7.
Items 1 and 2 will need a Theme reviewer.
Description
•