Closed Bug 1966166 Opened 7 months ago Closed 2 months ago

Listen for locale and other context changes on Desktop

Categories

(Application Services :: Remote Settings, task)

Tracking

(firefox146 fixed)

RESOLVED FIXED
146 Branch
Tracking Status
firefox146 --- fixed

People

(Reporter: bdk, Assigned: adw)

References

Details

(Whiteboard: [sng])

Attachments

(1 file)

As part of https://bugzilla.mozilla.org/show_bug.cgi?id=1956519, we listen for changes to the country code and update the remote settings context based on that. We should extend this to listen for other changes, in particular the locale.

I think locale is the only other thing that we need to listen for. This can be done by observing intl:app-locales-changed.

The interesting detail here might be that we would need to make sure that if clients are also listening to intl:app-locales-changed that they update after the remote settings server has updated. Hence it might be wise to send out a notification after remote settings has updated, indicating that the environment has changed, and they may wish to update if necessary.

I'll take this -- I'm working on a Suggest test that changes the region and locale and ingests Suggest data several times, which means the locale in the shared RS service needs to be updated.

Assignee: nobody → adw
Status: NEW → ASSIGNED
Whiteboard: [sng]

In addition to fixing the bug, this also makes sure we don't use a
cannot-be-a-base URL for the server during tests. I added a comment about that.

Blocks: 1993371
Flags: needinfo?(adw)
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 146 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: