Listen for locale and other context changes on Desktop
Categories
(Application Services :: Remote Settings, task)
Tracking
(firefox146 fixed)
| 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.
Comment 1•7 months ago
|
||
I think locale is the only other thing that we need to listen for. This can be done by observing intl:app-locales-changed.
Comment 2•7 months ago
|
||
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.
| Assignee | ||
Comment 3•2 months ago
|
||
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.
Updated•2 months ago
|
| Assignee | ||
Comment 4•2 months ago
|
||
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.
Comment 6•2 months ago
|
||
Backed out for causing failures at test_RustSharedRemoteSettingsService.js.
Backout link: https://hg-edge.mozilla.org/integration/autoland/rev/e53ce5540bdf680a53de9bb0b03b411f2ca992b9
Failure log: https://treeherder.mozilla.org/logviewer?job_id=531208726&repo=autoland&task=W1mYX1TNTiqyu_6kHTBYlA.0&lineNumber=2117
| Assignee | ||
Updated•2 months ago
|
Comment 8•2 months ago
|
||
| bugherder | ||
Description
•