Closed Bug 1719540 Opened 3 years ago Closed 3 years ago

Unify Intl APIs in dom/indexedDB/IndexedDatabaseManager.cpp

Categories

(Core :: Internationalization, task, P3)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: gregtatum, Assigned: gregtatum)

References

Details

(Whiteboard: [i18n-unification])

Attachments

(3 files)

Work: Small
What it is: a single call to validate a locale

Blocks: 1719554
No longer blocks: 1719554
Blocks: 1719664
Assignee: nobody → gtatum

I used the C api here, but verified that the behavior was the same
as using the C++ getBaseName API.

https://github.com/gregtatum/spec-cpp/blob/927fee5656e4e8f371a42a9ab6ba92732813fc3e/src/features/icu.cpp#L249-L268

I tried to keep the implementation naming at least similar to the
work in: https://phabricator.services.mozilla.com/D118070

However, the implementation do diverge. I figure in the future, the
APIs can be made similar, but at least the gtests will ensure the
behavior remains the same.

As part of the effort to unify the ICU calls, this replaces the calls for locale
canonicalization in IndexedDB code with the unified component. See Bug 1719664 for
more information.

Depends on D120248

Attachment #9231950 - Attachment description: Bug 1719540 - Implement a unified Locale canonicalizer; r?dminor → Bug 1719540 - Implement a unified Locale canonicalizer; r?#platform-i18n-reviewers
Attachment #9231952 - Attachment description: Bug 1719540 - Used mozilla::intl::LocaleCanonicalizer in IndexedDB; r?#dom-storage,dminor → Bug 1719540 - Used mozilla::intl::LocaleCanonicalizer in IndexedDB; r?#dom-storage,#platform-i18n-reviewers
Attachment #9231950 - Attachment description: Bug 1719540 - Implement a unified Locale canonicalizer; r?#platform-i18n-reviewers → Bug 1719540 - Implement a unified Locale canonicalizer; r?dminor
Attachment #9231952 - Attachment description: Bug 1719540 - Used mozilla::intl::LocaleCanonicalizer in IndexedDB; r?#dom-storage,#platform-i18n-reviewers → Bug 1719540 - Used mozilla::intl::LocaleCanonicalizer in IndexedDB; r?#dom-storage,dminor
Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e8b05f56aa75 Implement a unified Locale canonicalizer; r=platform-i18n-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/a6ab150a89f2 Used mozilla::intl::LocaleCanonicalizer in IndexedDB; r=dom-storage-reviewers,asuth
Whiteboard: [i18n-unification]

Backed out 2 changesets (Bug 1719540) for causing bustages in RelativeTimeFormat.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/abc2e73b5c35375010a986b3fdb32b6371a4534c
Push with failures, failure log.

Flags: needinfo?(gtatum)
Pushed by gtatum@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bf740f76c524 Implement a unified Locale canonicalizer; r=platform-i18n-reviewers,dminor https://hg.mozilla.org/integration/autoland/rev/fe76bdb1a6ad Used mozilla::intl::LocaleCanonicalizer in IndexedDB; r=dom-storage-reviewers,asuth https://hg.mozilla.org/integration/autoland/rev/0c59471463aa Fix unified build imports bustages for mozilla::intl; r=dminor
Flags: needinfo?(gtatum)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: