Closed Bug 2049027 Opened 5 months ago Closed 2 months ago

Cleanup all code related to the old "Home" pane in about:preferences

Categories

(Firefox :: Settings UI, task)

task

Tracking

()

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: hjones, Assigned: nina-py)

References

(Blocks 1 open bug)

Details

(Whiteboard: [recomp])

Attachments

(2 external files)

Once we are confident all the new Home and Startup preferences are working as expected / the SRD pref has been flipped for a while we should go back and cleanup all the unused code related to the old Home pane. Specifically we should:

  • delete browser/components/preferences/home.js and cleanup any references
  • delete browser/components/preferences/home.inc.xhtml and cleanup any references
    • check to see if there are any CSS styles, images, or other assets that are specific to that xhtml file and delete them
    • check to see if there are any Fluent ID that will be completely unused after we remove this markup/JS code and delete them
  • delete browser/components/preferences/tests/home/browser.toml as well as any test files that aren't included in the browser-srd.toml manifest
    • we should also probably rename the browser-srd.toml manifest to browser.toml once we've deleted the old file
  • remove any references to gHomePane
  • remove any unused code in /browser/extensions/newtab/lib/AboutPreferences.sys.mjs, specifically this method
Assignee: nobody → npypchenko
Status: NEW → ASSIGNED

Removes the legacy Home pane and its New Tab half: home.js, home.inc.xhtml,
the renderer in AboutPreferences.sys.mjs, the SectionsManager.sys.mjs section
metadata that only fed that renderer, the Home styles and the superseded tests.
Tests that checked both UIs, including the enterprise policy helpers, keep only
the redesign path.

Merging the two test manifests in tests/home/ also restores twelve
browser_homepage_extension_*.js tests that bug 2037657 dropped from every
manifest, so they run again.

Twenty-nine of these are orphaned by part 1. The other six were already unused,
left behind by bugs 1998829, 2003204, 2009106 and 2039925.

Pushed by npypchenko@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fed41a8bfa61 https://hg.mozilla.org/integration/autoland/rev/d5b705fa5def Part 1: Cleanup all code related to the old "Home" pane in about:preferences r=mconley,settings-reviewers,desktop-theme-reviewers,frontend-codestyle-reviewers,sfoster https://github.com/mozilla-firefox/firefox/commit/ee0cb5561d0f https://hg.mozilla.org/integration/autoland/rev/7350839fadc9 Part 2: Remove Fluent strings orphaned by the legacy Home pane removal r=fluent-reviewers,flod
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
QA Whiteboard: [qa-triage-done-c159/b158]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: