Generic home settings are initialised in the newtab component, rather than in preferences
Categories
(Firefox :: Settings UI, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr140 | --- | unaffected |
| firefox152 | --- | wontfix |
| firefox153 | --- | wontfix |
| firefox154 | --- | fix-optional |
| firefox155 | --- | fixed |
People
(Reporter: henry-x, Assigned: nina-py, NeedInfo)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
(Taken from bug 2019213 comment 8)
Bug 2019213 moved the configuration of "homepage" and "customHomepage" into the newtab extension.
For Tor Browser, this has caused a problem because, for various reasons, we exclude all the built-in extensions, including browser/extensions/newtab. As such, under the settings redesign the homepage settings fail to load. But we still need to expose the settings to allow the user to change their new tab and home preferences from "about:blank" to "about:tor" (our home page) or a custom web page.
Desired solution
NOTE: I would personally be willing to write the patch since it would benefit us downstream.
Ideally, for downstream projects like Tor Browser, it would be useful if the "homepage" and "customHomepage" settings groups were set up in browser/components/preferences/config/home-startup.mjs instead. Whilst only the "home" setting group is initialised in browser/extensions/newtab/lib/AboutPreferences.sys.mjs. This would keep the parts specific to Firefox Home in the "newtab" extension, whilst keeping the generic parts (home page and new tab preferences) in the preferences directory.
If this was done, a downstream project would only need to make small changes (renaming the "home" option to something other than "Firefox Home (default)"), whilst being able to share the non-trivial extension-set homepage logic.
Current work-around
I'm testing out a work-around that only includes browser/extensions/newtab/lib/AboutPreferences.sys.mjs as an exception and add the method:
registerGroups(window) {
// We do not register the "home" component, since this is specific for
// Firefox Home. tor-browser#44830.
window.SettingGroupManager.registerGroups({
homepage: this._setupHomepageGroup(window),
customHomepage: this._setupCustomHomepageGroup(window),
});
}
and then in browser/components/preferences/config/home-startup.mjs I call:
new AboutPreferences().registerGroups(window);
However, there are a few drawbacks to this:
AboutPreferences.sys.mjsnon-lazily imports a number of modules fromnewtabthat need to be removed. Even though these are not used for "homepage" and "customHomepage".- As a downstream project, we are likely to get conflicts in this file.
- As a downstream project, this could easily break in the future since we are using the
AboutPreferencesclass in a way not intended by Firefox developers.
Comment 1•1 month ago
|
||
Set release status flags based on info from the regressing bug 2019213
:nina-py, since you are the author of the regressor, bug 2019213, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 2•1 month ago
|
||
Hi Henry, let me discuss this internally and get back to you asap!
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 3•1 month ago
|
||
Hi again Henry, we're going to make this change. I'll submit a patch shortly and I expect it will be in Nightly sometime next week.
| Assignee | ||
Comment 4•1 month ago
|
||
Updated•1 month ago
|
| Reporter | ||
Comment 5•1 month ago
|
||
Hi again Henry, we're going to make this change.
Hey, thank you so much!
Updated•1 month ago
|
Updated•1 month ago
|
Comment 6•21 days ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 1 week.
:nina-py, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Comment 7•18 days ago
|
||
Can we prioritize landing this and potentially backport to esr 153?
| Assignee | ||
Comment 8•17 days ago
|
||
I've updated the patch with a somewhat different approach to fix this issue and requested a re-review on it.
Updated•3 days ago
|
Comment 9•2 days ago
|
||
Comment 10•1 day ago
|
||
Comment 11•1 day ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/17f8b43458ab
https://hg.mozilla.org/mozilla-central/rev/3c413dd3e342
Comment 12•1 day ago
|
||
The patch landed in nightly and beta is affected.
:nina-py, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox154towontfix.
For more information, please visit BugBot documentation.
Description
•