Unify the intl/locale/DateTimeFormat API into the intl/components/DateTimeFormat
Categories
(Core :: Internationalization, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox96 | --- | fixed |
People
(Reporter: gregtatum, Assigned: gregtatum)
References
Details
(Whiteboard: [i18n-unification])
Attachments
(4 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
Bug 1715892 - Add thread safety notice and asserts for AppDateTimeFormat; r?#platform-i18n-reviewers
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Currently there is an existing implementation of a DateTimeFormat API here:
https://searchfox.org/mozilla-central/source/intl/locale/DateTimeFormat.cpp
However the new unified API is here:
https://searchfox.org/mozilla-central/source/intl/components/src/DateTimeFormat.h
The intl/locale API should be migrated to use the unified component.
| Assignee | ||
Comment 1•4 years ago
|
||
I'm setting this as depends on Bug 1719696, since it'll be easier to write the new components bag abstraction first, rather than migrate it here too.
| Assignee | ||
Comment 2•4 years ago
|
||
Here are a list of the call sites:
layout/build/nsLayoutStatics.cpp
DateTimeFormat::Shutdown();
layout/generic/nsPageSequenceFrame.cpp
DateTimeFormat::FormatPRTime (length bag)
netwerk/streamconv/converters/nsIndexedToHTML.cpp
DateTimeFormat::FormatPRExplodedTime (length bag)
security/manager/ssl/TransportSecurityInfo.cpp
Unused import
security/manager/ssl/X509CertValidity.h
security/manager/ssl/X509CertValidity.cpp
DateTimeFormat::FormatPRExplodedTime
security/manager/ssl/nsNSSCertHelper.cpp
Unused import
toolkit/components/places/nsNavHistory.cpp
DateTimeFormat::GetCalendarSymbol - (components bag)
DateTimeFormat::FormatDateTime - (components bag)
| Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 4•4 years ago
|
||
Depends on D131019
| Assignee | ||
Comment 5•4 years ago
|
||
I considered removing this class initially, but it's actually a pretty
useful abstraction over the DateTimeFormat interface when used
specifically with Gecko. It applies the OS preferences and provides some
caching behavior.
Depends on D131670
| Assignee | ||
Comment 6•4 years ago
|
||
Depends on D131671
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
| Assignee | ||
Comment 7•4 years ago
|
||
This will not build, but will provide a better diff for the changes.
Comment 9•4 years ago
|
||
Backed out 6 changesets (Bug 1715892, Bug 1719735) for causing bc test failures.
Backout link
Push with failures
Failure Log
| Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/203d028cf6cd
https://hg.mozilla.org/mozilla-central/rev/feb36495c198
https://hg.mozilla.org/mozilla-central/rev/b7eb41176fd5
https://hg.mozilla.org/mozilla-central/rev/602bc2679cb9
Description
•