Closed Bug 2053568 Opened 3 months ago Closed 2 months ago

Remove three unused activity-stream discoverystream.thumbsUpDown.* preferences

Categories

(Firefox :: New Tab Page, task)

task

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: Sylvestre, Assigned: nirmaladvani, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=js])

Attachments

(1 file)

Filing as a good first bug to learn workflows.

The following about:newtab preferences (defined in browser/app/profile/firefox.js) are never read anywhere in the tree. They were the region/locale gating config for the story thumbs up/down buttons (bug 1909900, 2024), but their reader in browser/components/newtab/lib/ActivityStream.sys.mjs and the Nimbus mapping were dropped when newtab moved to browser/extensions/newtab/. The current PREFS_CONFIG and Nimbus FeatureManifest.yaml no longer reference them. Please remove their definitions.

  • browser.newtabpage.activity-stream.discoverystream.thumbsUpDown.locale-thumbs-config
  • browser.newtabpage.activity-stream.discoverystream.thumbsUpDown.region-thumbs-config
  • browser.newtabpage.activity-stream.discoverystream.thumbsUpDown.searchTopsitesCompact

Link to the code:
https://searchfox.org/mozilla-central/source/browser/app/profile/firefox.js#2074

To verify the fix:

  • Confirm each pref has no remaining users by searching its name (and the sub-keys locale-thumbs-config, region-thumbs-config, searchTopsitesCompact) on https://searchfox.org (only the definition should match).
  • Build the tree to make sure nothing breaks:
    ./mach build

Tutorial to contribute:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/contributing/stack_quickref.html

Please don't ask for the bug to be assigned. It will be automatically assigned to the first patch.

Assignee: nobody → nirmaladvani
Status: NEW → ASSIGNED
Blocks: 1971795, 610031
Blocks: 1909900
Pushed by sdowne@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7cceb7fba8be https://hg.mozilla.org/integration/autoland/rev/93ebf9b3cb3e Remove unused locale-thumbs-config, region-thumbs-config, searchTopsitesCompact r=thecount

I think I made mistake with my git for author as it shows author Your Name <you@example.com>. Is there a way to make correction or that boat has already sailed?

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
QA Whiteboard: [qa-triage-done-c156/b155]
No longer blocks: 610031
No longer blocks: 1909900, 1971795
Depends on: 1909900, 1971795
Blocks: 2070615
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: