Closed Bug 2031707 Opened 1 month ago Closed 1 month ago

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)

Desktop
Unspecified
defect

Tracking

()

VERIFIED FIXED
152 Branch
Tracking Status
firefox151 --- verified
firefox152 --- verified

People

(Reporter: Gabi, Assigned: maxx)

References

(Blocks 1 open bug)

Details

Attachments

(3 files, 1 obsolete file)

Attached image 2026-04-14_17h44_51.gif

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

  1. Open a new tab page to reach the weather widget
  2. From the widget menu click the Hide widget option
  3. Open Customization Panel and observe Manage Widgets Weather toggle (Toggle is disabled)
  4. 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

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.

Assignee: nobody → mcrawford
Status: NEW → ASSIGNED
Pushed by rhamoui@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8ebc67d70db6 https://hg.mozilla.org/integration/autoland/rev/0f6bc0a5d8a2 Sync weather pref between about:preferences#home and Nova widget panel. r=home-newtab-reviewers,reemhamz
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/db60a0c10515 https://hg.mozilla.org/integration/autoland/rev/04bd4e2de051 Revert "Bug 2031707 - Sync weather pref between about:preferences#home and Nova widget panel. r=home-newtab-reviewers,reemhamz" for causing bc failures @browser_homepage_firefox_home.js.

Backed out for causing bc failures @browser_homepage_firefox_home.js.

Flags: needinfo?(mcrawford)
Flags: needinfo?(mcrawford)
Pushed by mcrawford@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/6e8f530a0771 https://hg.mozilla.org/integration/autoland/rev/1ee96c9fe5bf Sync weather pref between about:preferences#home and Nova widget panel. r=home-newtab-reviewers,reemhamz,hjones
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 152 Branch

The patch landed in nightly and beta is affected.
:maxx, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(mcrawford)

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
Attachment #9573498 - Flags: approval-mozilla-beta?
Flags: qe-verify+

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

Flags: needinfo?(mcrawford)

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
Attachment #9573650 - Flags: approval-mozilla-beta?

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

Attachment #9573498 - Attachment is obsolete: true
Attachment #9573498 - Flags: approval-mozilla-beta?
Attachment #9573650 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [S3][QA-5015][qa-found-in-c151] → [S3][QA-5015][qa-found-in-c151][uplift][qa-ver-needed-c152/b151]

Verified as fixed in Firefox 152.0a1 and Firefox 151.0b3(treeherder build).

Status: RESOLVED → VERIFIED
QA Whiteboard: [S3][QA-5015][qa-found-in-c151][uplift][qa-ver-needed-c152/b151] → [S3][QA-5015][qa-found-in-c151][uplift][qa-ver-needed-c152/b151][qa-ver-done-c152/b151]
Flags: qe-verify+
No longer regressed by: 2037133
Regressions: 2037133
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: