Open
Bug 1346877
Opened 7 years ago
Updated 2 years ago
Finalize LocaleService
Categories
(Core :: Internationalization, enhancement, P3)
Core
Internationalization
Tracking
()
ASSIGNED
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
(Depends on 3 open bugs)
Details
There's a shrinking number of changes that we need to add to LocaleService before it can be considered stable. I'd like to use this tracking bug to track those and once they're all resolved, I'd like to clean up docs and tests.
Assignee | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•7 years ago
|
||
- look at what functions could can take const.
Assignee | ||
Comment 2•7 years ago
|
||
- should switch to artifical locales in tests to ensure that real test env. locales don't create false positives.
Assignee | ||
Comment 3•7 years ago
|
||
:jfkthame brought up a point in bug 1346616 that we should return `undefined` for missing value in singular calls like getRequestedLocale, getAppLocaleAsLangTag, getAppLocaleAsBCP47. While my hope is that we'll move away from the singular forms overall, it would be good to make sure that we don't treat the edge case scenarios (when request locale is not set) the same way as if it's set to an empty string. I'll try to do this in this bug, add tests and also test extensively if any use case of the API breaks.
Assignee | ||
Comment 4•7 years ago
|
||
(also, probably the same should happen with OSIPreferences.systemLocale).
Assignee | ||
Comment 5•7 years ago
|
||
As :qDot pointed out in bug 1348042 comment 20, we may want to look into splitting LocaleService into Client/Server files and classes that inherit from a base class. I'd prefer to do that as part of this bug so that it's not combined with functional changes.
Comment 6•7 years ago
|
||
While you're splitting out functionality in LocaleService, could you also throw main thread checks in on GetInstance and all public service functions? There's a ton of code in there that will crash anyways if anything happens off the main thread (preferences, clearonshutdown, etc), but it's just nice to fail early if we can.
Assignee | ||
Comment 7•7 years ago
|
||
Jonathan, what's your take on splitting LocaleService into LocaleServiceBase, LocaleServiceClient and LocaleServiceParent?
Flags: needinfo?(jfkthame)
Comment 8•7 years ago
|
||
(In reply to Zibi Braniecki [:gandalf][:zibi] from comment #7) > Jonathan, what's your take on splitting LocaleService into > LocaleServiceBase, LocaleServiceClient and LocaleServiceParent? I don't feel strongly about it, but I do think it'd probably be good for long-term readability and maintenance.
Flags: needinfo?(jfkthame)
Assignee | ||
Updated•7 years ago
|
Summary: Finalize LanguageService → Finalize LocaleService
Updated•7 years ago
|
Priority: -- → P3
Comment 9•2 years ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: zibi → nobody
Status: ASSIGNED → NEW
Comment 10•2 years ago
|
||
Sorry, there was a problem with the detection of inactive users. I'm reverting the change.
Assignee: nobody → zibi
Status: NEW → ASSIGNED
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•