Closed Bug 2096024 Opened 3 days ago Closed 1 day ago

Singapore missing from the Weather widget's built-in regions

Categories

(Firefox :: New Tab Page, defect)

defect

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: gharp, Assigned: jaws)

References

Details

(Whiteboard: [hnt][hnt-wattle])

Attachments

(1 external file)

Add SG back to browser.newtabpage.activity-stream.discoverystream.region-weather-config. Bug 2083811 added it, then Bug 2078871 replaced the list without it.

The default region-weather-config in firefox.js lost SG in d28321cc22a3 (bug 2078871), whose pre-image still had the SG that 8b851f2a5d78 (bug 2083811) added, so showWeather() in ActivityStream.sys.mjs now defaults system.showWeather and widgets.system.weather.enabled to false in SG, and the opt-in from WEATHER_OPTIN_REGIONS never shows because WeatherFeed.isEnabled() is false.

Fix: Re-insert SG between SE and SI in that pref; nothing else needs changing, and since no test reads the real default, an xpcshell check that every WEATHER_OPTIN_REGIONS entry appears in the default pref would catch the next clobber.

Suggested severity: S3. Weather is unavailable by default for Singapore users on Nightly 161+ (160 beta has the uplifted fix), which is one region with no in-product workaround other than a Nimbus rollout.


If you'd like to provide feedback on this comment, please use the 👍 or 👎 reaction.
If you want to categorize your feedback you can add one of the following tags: ai-triage-{wrong-file, wrong-cause, hallucination, out-of-scope, not-a-bug, wrong-fix, shallow-fix, wrong-severity}.

Needinfo hackbot@mozilla.tld to have a patch generated for this bug, include any questions or directions as needed in your comment.

Bug 2078871 replaced the default browser.newtabpage.activity-stream.discoverystream.region-weather-config list from a version that did not have the SG entry that bug 2083811 had added. This puts SG back.

Also adds an xpcshell test that checks every WEATHER_OPTIN_REGIONS entry is in the default pref, so the next time the list gets overwritten the test will fail.

Note for reviewers: LU (Luxembourg) is in WEATHER_OPTIN_REGIONS but has never been in the default pref. The test lists it as an exception (NOT_ENABLED_BY_DEFAULT). If LU should get Weather by default too, add it to the pref and remove the exception.

Assignee: nobody → jwein
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 day ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: