Open Bug 2101601 Opened 1 day ago Updated 1 day ago

[meta] Remove browser.nova.enabled checks from Private Browsing code before the Nova pref is removed

Categories

(Firefox :: Private Browsing, task, P1)

task

Tracking

()

164 Branch

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 requires browser.nova.enabled as well as browser.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 set browser.nova.enabled, for example browser_privatebrowsing_about_kit_intro.js and browser_privatebrowsing_about_nova_promo.js.
  • To confirm: bug 2063346 described the private browsing info panel in browser/base/content/main-popupset.inc.xhtml as 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:

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 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.

  1. Private window theme: toolkit/modules/LightweightThemeConsumer.sys.mjs (around lines 353–366) only substitutes the built-in private-window theme when browser.nova.enabled is true, and its pref getter defaults to false. If the pref is removed first, private windows lose that theme. Highest risk. Related: bug 2062412.
  2. 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 in private-browsing-indicator.inc.xhtml becomes dead code.
  3. Update banner: browser/components/customizableui/content/panelUI.js (around lines 1309–1316) drops the update-restart banner description in private windows only under Nova.
  4. toolkit/modules/RemotePageAccessManager.sys.mjs line 197 lets about:privatebrowsing read the pref; remove it once aboutPrivateBrowsing.js is cleaned up.
  5. Test: toolkit/components/extensions/test/browser/browser_ext_themes_private_nova.js.
  6. Already tracked elsewhere: privateBrowsing.svg is 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.

You need to log in before you can comment on or make changes to this bug.