Closed Bug 1947195 Opened 1 month ago Closed 1 month ago

Newtab showWeather has Nimbus setup prefs mismatch

Categories

(Firefox :: New Tab Page, defect)

defect

Tracking

()

VERIFIED FIXED
137 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox135 --- verified
firefox136 --- verified
firefox137 --- verified

People

(Reporter: thecount, Assigned: thecount)

References

(Regression)

Details

(Keywords: regression)

Attachments

(3 files)

showWeather is using Services.prefs.getStringPref to get the setup prefs, but the Nimbus feature manifest is using fallbackPref.

This was regressed in bug 1924597. Before that bug, it was using fallbackPref and NimbusFeatures.pocketNewtab.getVariable.

It should have been moved to setPref and Services.prefs.getStringPref, but the feature manifest never got the change for using setPref, and is still using fallbackPref.

Assignee: nobody → sdowne

Set release status flags based on info from the regressing bug 1924597

Blocks: 1946724

To test this patch, you'll want to enroll in a study.

Prefs

Set the following prefs to true:

  • nimbus.debug

Testing steps:

  1. Verify the following weather locale/region config prefs BEFORE enrolling in the study.
  2. Open about:config.
  3. Expected:
    • browser.newtabpage.activity-stream.discoverystream.locale-weather-config : en-US,en-GB,en-CA
    • browser.newtabpage.activity-stream.discoverystream.region-weather-config: US,CA
  4. Enroll in the following study:
    about:studies?optin_slug=hnt-weather-with-location-selector-non-eu-expansion&optin_branch=control&optin_collection=nimbus-preview
  5. Expected: The about:studies page should open, with a notification at the top of the page of "Opt-in was successful."
  6. Open about:config
  7. Expected:
    • browser.newtabpage.activity-stream.discoverystream.locale-weather-config : hi-IN, kn, mr, pa-IN, ta, te, tr, ur, en-US, en-CA, en-GB
    • browser.newtabpage.activity-stream.discoverystream.region-weather-config: IN, BD, PK, TR
Pushed by sdowne@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50264c4bfe32 Newtab weather widget rollout mechanism mismatch r=maxx
Attachment #9465310 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Wrong prefs will be set, feature won't show as intended
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: Tests in bugzilla
  • Risk associated with taking this patch: low
  • Explanation of risk level: Small pref changes
  • String changes made/needed: None
  • Is Android affected?: no
Flags: qe-verify+
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
QA Whiteboard: [qa-triaged]
Attachment #9465310 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9465585 - Flags: approval-mozilla-release?

release Uplift Approval Request

  • User impact if declined: Wrong prefs will be set, feature won't show as intended
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: Steps found in bugzilla
  • Risk associated with taking this patch: low
  • Explanation of risk level: Small pref changes
  • String changes made/needed: None
  • Is Android affected?: no

I have verified this issue on the latest Nightly 137.0a1 (Build ID: 20250211214755) and latest Beta 136.0b5 try build (Build ID: 20250211132255) downloaded from treeherder on Windows 10 x64, macOS 17.4.1 and Linux Mint 20.1.

  • The Weather Widget is successfully enabled and displayed using Nimbus.

I will leave the "qe-verify+" flag set in case the fix is also uplifted in Firefox Release 135.

Status: RESOLVED → VERIFIED
Attachment #9465585 - Flags: approval-mozilla-release? → approval-mozilla-release+

I have verified this issue on the latest Firefox Release 135.0.1 (Build ID: 20250216192613) on Windows 11 x64, macOS 17.4.1 and Linux Mint 20.1.

  • The Weather Widget is successfully enabled and displayed using Nimbus.
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: