Closed Bug 1719542 Opened 3 years ago Closed 3 years ago

Unify Intl APIs in dom/indexedDB/Key.cpp

Categories

(Core :: Internationalization, task, P3)

task

Tracking

()

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: gregtatum, Assigned: allstars.chh)

References

Details

(Whiteboard: [i18n-unification], [i18n-unification-help-wanted] )

Attachments

(4 files)

Difficulty: Small
What it is: A call to create a sort key.

Blocks: 1719664
Whiteboard: [i18n-unification-help-wanted]
Whiteboard: [i18n-unification-help-wanted] → [i18n-unification], [i18n-unification-help-wanted]
Assignee: nobody → allstars.chh
Status: NEW → ASSIGNED

Make GetSortKey call FillBufferWithICUCall so we have the same behavior
when resizeing the buffer.

For Key::EncodeLocaleString change, the test should be convered in
dom/indexedDB/test/gtest/TestKey.cpp.

Attachment #9246818 - Attachment description: Bug 1719542 - Part 2: Add an overloading of FillBufferWithICUCall takes nsTArra. → Bug 1719542 - Part 2: Add an overloading of FillBufferWithICUCall takes nsTArray.

Originally nsCollation::AllocateRawSortKey used an infallible nsTArray1,
however, for IndexedDB it used a fallible nsTArray instead2, so making
SetCapacity fallible.

Pushed by allstars.chh@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/9a3b77c276a9
Part 1: Collator::GetSortKey calls FillBufferWithICUCall. r=platform-i18n-reviewers,anba,gregtatum
https://hg.mozilla.org/integration/autoland/rev/ffa0a9966985
Part 2: Add an overloading of FillBufferWithICUCall takes nsTArray. r=platform-i18n-reviewers,gregtatum
https://hg.mozilla.org/integration/autoland/rev/aaac3fa08626
Part 3: Unify IndexedDB key. r=platform-i18n-reviewers,gregtatum
https://hg.mozilla.org/integration/autoland/rev/0d444a098002
Part 4: Make calling nsTArray::SetCapacity fallible. r=platform-i18n-reviewers,dminor
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: