The Weather checkbox in about:preferences#home is not synchronized with the Weather widget toggle in the Customization Panel
Categories
(Firefox :: New Tab Page, defect)
Tracking
()
People
(Reporter: Gabi, Assigned: maxx)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 1 obsolete file)
Affected versions
- Firefox 151.0a1
Affected platforms
- Win 11 x64
- macOS 14
- Ubuntu 24
Preconditions
- browser.newtabpage.activity-stream.system.showWeather true
- browser.newtabpage.activity-stream.widgets.system.weather.enabled true
- browser.newtabpage.activity-stream.nova.enabled true
Steps to reproduce
- Open a new tab page to reach the weather widget
- From the widget menu click the Hide widget option
- Open Customization Panel and observe Manage Widgets Weather toggle (Toggle is disabled)
- Reach about:preferences#home and see the Weather checkbox under Firefox Home content
Expected result
- Weather checkbox is disabled when the widgets is toggled off from Customization Panel
Actual result
- The Weather checkbox in about:preferences#home is not synchronized with the Weather widget toggle in the Customization Panel.
Regression range
- New feature
Additional notes
- See the attached screencast
| Assignee | ||
Comment 1•1 month ago
|
||
In Nova mode, the Customization Panel weather toggle writes widgets.weather.enabled, but about:preferences#home was bound to the classic showWeather pref, leaving the two out of sync.
Fix both the settings-redesign path (_setupHomeGroup) and the legacy path (PREFS_FOR_SETTINGS) in AboutPreferences to read/write widgets.weather.enabled (with widgets.system.weather.enabled as the system gate) when nova.enabled is true.
Update WeatherFeed.isEnabled() and onPrefChangedAction to react to widgets.weather.enabled in Nova mode, and update Base.jsx and ContentSection.jsx to use the correct pref for weatherEnabled and the fallback weather toggle. Add nova-cleanup comments to all new Nova-conditional branches.
Updated•1 month ago
|
Backed out for causing bc failures @browser_homepage_firefox_home.js.
| Assignee | ||
Comment 5•1 month ago
|
||
Updated the patch to fix test errors, and ran a push try:
https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=37664
Comment 8•1 month ago
|
||
The patch landed in nightly and beta is affected.
:maxx, 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-firefox151towontfix.
For more information, please visit BugBot documentation.
Comment 9•1 month ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: This patch resolves pref-mismatch issues where a user turns off/on the Weather widget in about:preferences#home and that decision is not respected.
Weather is by default turned on for a majority of Firefox users, so this fix is helpful in making sure their decision is respected.
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: yes
- Steps to reproduce for manual QE testing: See testing steps in patch:
https://phabricator.services.mozilla.com/D295118 - Risk associated with taking this patch: low
- Explanation of risk level: Applies to Nova specific weather widget, so it's somewhat conditionally gated (however Beta has Nova enabled for HNT)
Includes test coverage
- String changes made/needed?: No
- Is Android affected?: no
| Assignee | ||
Comment 10•1 month ago
|
||
In Nova mode, the Customization Panel weather toggle writes widgets.weather.enabled, but about:preferences#home was bound to the classic showWeather pref, leaving the two out of sync.
Fix both the settings-redesign path (_setupHomeGroup) and the legacy path (PREFS_FOR_SETTINGS) in AboutPreferences to read/write widgets.weather.enabled (with widgets.system.weather.enabled as the system gate) when nova.enabled is true.
Update WeatherFeed.isEnabled() and onPrefChangedAction to react to widgets.weather.enabled in Nova mode, and update Base.jsx and ContentSection.jsx to use the correct pref for weatherEnabled and the fallback weather toggle. Add nova-cleanup comments to all new Nova-conditional branches.
Original Revision: https://phabricator.services.mozilla.com/D295118
| Assignee | ||
Updated•1 month ago
|
Comment 11•1 month ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined/Reason for urgency: This patch resolves pref-mismatch issues where a user turns off/on the Weather widget in about:preferences#home and that decision is not respected.
Weather is by default turned on for a majority of Firefox users, so this fix is helpful in making sure their decision is respected.
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: yes
- Steps to reproduce for manual QE testing: See testing steps in patch:
https://phabricator.services.mozilla.com/D295118 - Risk associated with taking this patch: low
- Explanation of risk level: Applies to Nova specific weather widget, so it's somewhat conditionally gated (however Beta has Nova enabled for HNT)
Includes test coverage
- String changes made/needed?: No
- Is Android affected?: no
| Assignee | ||
Comment 12•1 month ago
|
||
In Nova mode, the Customization Panel weather toggle writes widgets.weather.enabled, but about:preferences#home was bound to the classic showWeather pref, leaving the two out of sync.
Fix both the settings-redesign path (_setupHomeGroup) and the legacy path (PREFS_FOR_SETTINGS) in AboutPreferences to read/write widgets.weather.enabled (with widgets.system.weather.enabled as the system gate) when nova.enabled is true.
Update WeatherFeed.isEnabled() and onPrefChangedAction to react to widgets.weather.enabled in Nova mode, and update Base.jsx and ContentSection.jsx to use the correct pref for weatherEnabled and the fallback weather toggle. Add nova-cleanup comments to all new Nova-conditional branches.
Original Revision: https://phabricator.services.mozilla.com/D295118
Updated•1 month ago
|
Updated•1 month ago
|
Updated•1 month ago
|
Comment 13•1 month ago
|
||
| uplift | ||
Updated•1 month ago
|
| Reporter | ||
Comment 14•1 month ago
|
||
Verified as fixed in Firefox 152.0a1 and Firefox 151.0b3(treeherder build).
| Reporter | ||
Updated•1 month ago
|
Updated•1 month ago
|
Description
•