Closed Bug 2079354 Opened 1 month ago Closed 10 days ago

Cleanup all code related to the old "Applications" section of about:preferences

Categories

(Firefox :: Settings UI, task)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: hjones, Assigned: akulyk)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [recomp])

Attachments

(1 external file)

All of the code for the old "Applications" section of about:preferences lives in main.js. To simplify the work involved in removing the "General" pane it is probably safer/easier to clean this code up separately. Specifically we will need to:

Blocks: 2079961
Whiteboard: [recomp]
Assignee: nobody → akulyk
  • Remove AppFileHandler, HandlerListItem and the rest of the legacy Applications code from main.js, along with the gMainPane.preInit() and gMainPane.observe() code that only served it, and the gMainPane.initialized promise preInit() waited on.
  • Remove the legacy Applications and "Files and Applications" markup from main.inc.xhtml, and the duplicate Downloads setting-group, which the Downloads pane already renders.
  • Fold HandlerServiceHelpers into ApplicationsHandler, make the downloads.mjs exports module-private since main.js no longer imports them, and drop helpers only the legacy list used.
  • Pass isValidHandlerApp and getIconURLForHandlerApp to the application manager dialog as a dialog argument, instead of having it reach into gMainPane. Importing downloads.mjs in the dialog would register its settings again in the dialog window.
  • Drop inProgress from the applications setting group, and the unused applicationsGroup setting.
  • Remove the TYPE_PDF and PREF_PDFJS_DISABLED constants, unused since PDFHandlerInfoWrapper was moved into downloads.mjs.
  • Remove CSS and Fluent strings used only by the old section, including handlers.css.
Pushed by akulyk@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/791898b87059 https://hg.mozilla.org/integration/autoland/rev/19cffe2545e9 Cleanup all code related to the old "Applications" section of about:preferences r=settings-reviewers,fluent-reviewers,desktop-theme-reviewers,hjones,flod
Status: NEW → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: