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)
Firefox
Settings UI
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:
- Remove all the code starting from this entry point - mainly this AppFileHandler
- There are definitely other related blocks of code e.g.: https://searchfox.org/firefox-main/rev/00aad09a820405643aebd693e60a3333ccf04544/browser/components/preferences/main.js#1687-1822
- Double check to see if there are any CSS classes or Fluent IDs that we will no longer need once this old code is removed
- Remove this other block of special cased logic - it may be worth seeing if the logic from that
preInitfunction can be moved intodownloads.mjs, which is where the newer applications code now lives - See if we still need to be exporting all of this code from
downloads.mjs- in particular theHandlerServiceHelperscan likely be integrated into the newerAppFileHandlerclass - There may be additional cleanup items discovered along the way, but this should be enough to get started with
| Reporter | ||
Updated•1 month ago
|
Whiteboard: [recomp]
Updated•1 month ago
|
- 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
Comment 3•10 days ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 days ago
status-firefox162:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•