Closed Bug 1896681 Opened 19 days ago Closed 9 days ago

Home and newtab weather widget locale/region controls

Categories

(Firefox :: New Tab Page, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
128 Branch
Tracking Status
firefox127 + verified
firefox128 --- verified

People

(Reporter: thecount, Assigned: thecount)

References

Details

(Whiteboard: [hnt])

Attachments

(2 files, 1 obsolete file)

Do we want the system pref to be behind some sort of locale/region logic, so we can control what regions have this feature as an option?

This is currently the pattern we use for spocs and pocket stories.

Nimbus can target locale/region, but Firefox cannot. So once we go past Nimbus and start turning this on in trains, do we want the ability to control what regions see this or turn it on globally?

Depends on: 1890136

[Tracking Requested - why for this release]: We intend to launch a weather experiment in 127. It should be a low risk, small set of changes.

The weather experiment is going to be US only. The weather response accuracy in other regions can be less accurate, so until we do more testing in other regions, we want to keep this feature behind a US only flag.

The bug is marked as tracked for firefox127 (beta). However, the bug still isn't assigned.

:amy, could you please find an assignee for this tracked bug? If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(achurchwell)
Assignee: nobody → sdowne
Attachment #9403125 - Attachment description: WIP: Bug 1896681 - Home and newtab adding region control for weather widget → Bug 1896681 - Home and newtab adding region control for weather widget

Steps to test:

  1. Set "browser.newtabpage.activity-stream.discoverystream.region-weather-config" to "CA", where "CA" matches what's in "browser.search.region"
    Note: "browser.newtabpage.activity-stream.discoverystream.region-weather-config" can be a comma separated list of region, example: "CA,US", and this would enable weather for multiple regions.
  2. Restart newtab.
  3. Open newtab
    Expected: Should see weather. If your region pref did not match what was in region-weather-config, and you restart, you should not see weather.
Flags: needinfo?(achurchwell)
Attachment #9403404 - Attachment is obsolete: true
Priority: -- → P1
Pushed by sdowne@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/268ec5298013
Home and newtab adding region control for weather widget r=home-newtab-reviewers,amy
Status: NEW → RESOLVED
Closed: 9 days ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch

Is the experiment nightly-only for now? ie not intending to ship with 127? If not then we can set the firefox127 flag to disabled. But if this is for 127 then please request uplift. Thanks!

Flags: needinfo?(sdowne)
Attachment #9403922 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: This impacts an experiment we plan to run in 127
  • Code covered by automated testing: yes
  • Fix verified in Nightly: no
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: 1. Set "browser.newtabpage.activity-stream.discoverystream.region-weather-config" to "CA", where "CA" matches what's in "browser.search.region" Note: "browser.newtabpage.activity-stream.discoverystream.region-weather-config" can be a comma separated list of region, example: "CA,US", and this would enable weather for multiple regions. 2. Restart newtab. 3. Open newtab Expected: Should see weather. If your region pref did not match what was in region-weather-config, and you restart, you should not see weather.
  • Risk associated with taking this patch: Low
  • Explanation of risk level: It's a single new pref and a single function to set the pref, based off an existing pattern.
  • String changes made/needed: None
  • Is Android affected?: no
Flags: qe-verify+

Uplift request is in.

Flags: needinfo?(sdowne)
Attachment #9403922 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I have verified this enhancement using Firefox Nightly 128.0a1, Build ID: 20240526212755 and Firefox Beta 127.0b7 (build downloaded from Treeherder), Build ID: 20240526171419 and I can confirm that the Weather Widget is successfully displayed when the "browser.newtabpage.activity-stream.discoverystream.region-weather-config" matches the "browser.search.region" pref while the Weather widget is not displayed on the New Tab page when the value of the prefs do not match.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: