André Bargull
ee902f8f06
Bug 1766220: Backport ICU-21994 to fix a potential heap buffer overflow. r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D144542
2022-04-25 16:34:42 +00:00
Noemi Erli
b72aebe50e
Backed out changeset 015c2c72a2a2 (bug 1761835) for causing failures in browser_stringBundleInvalidation.js CLOSED TREE
2022-04-21 04:32:28 +03:00
Greg Tatum
85d131c3dc
Bug 1761835 - Add a test for switching locales and string bundles; r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D144032
2022-04-20 18:02:02 +00:00
Karnik Kanojia
f56be3984d
Bug 1762683 - Fix ESLint rule warnings for no-unused-vars in intl/uconv/tests/unit/test_bug317216.js. r=Standard8
...
Differential Revision: https://phabricator.services.mozilla.com/D143223
2022-04-19 11:22:34 +00:00
André Bargull
8d87ceda13
Bug 1763783 - Part 10: Remove no longer needed workarounds for ICU-21154 and ICU-21155. r=platform-i18n-reviewers,jfkthame
...
ICU-21154 and ICU-21155 have been fixed in ICU 71, so we can remove this
workaround.
Depends on D143282
Differential Revision: https://phabricator.services.mozilla.com/D143283
2022-04-10 09:18:06 +00:00
André Bargull
2130cb5dbf
Bug 1763783 - Part 9: Update ICU draft API guards. r=platform-i18n-reviewers,jfkthame
...
- `UCAL_TZ_LOCAL_FORMER` and `UCAL_TZ_LOCAL_FORMER` are now stable.
- `UNUM_APPROXIMATELY_SIGN_FIELD` is a new draft API.
Depends on D143281
Differential Revision: https://phabricator.services.mozilla.com/D143282
2022-04-10 09:18:05 +00:00
André Bargull
64e2cbf62b
Bug 1763783 - Part 7: Update expected test results. r=platform-i18n-reviewers,jfkthame
...
Depends on D143279
Differential Revision: https://phabricator.services.mozilla.com/D143280
2022-04-10 09:18:04 +00:00
André Bargull
0730f55989
Bug 1763783 - Part 4: Update language tags mappings to CLDR 41. r=platform-i18n-reviewers,jfkthame
...
Depends on D143276
Differential Revision: https://phabricator.services.mozilla.com/D143277
2022-04-10 09:18:03 +00:00
André Bargull
bf0b6fd5c1
Bug 1763783 - Part 3: Update time zone data to tzdata2022a. r=platform-i18n-reviewers,jfkthame
...
Depends on D143275
Differential Revision: https://phabricator.services.mozilla.com/D143276
2022-04-10 09:18:03 +00:00
André Bargull
d9409e29f8
Bug 1763783 - Part 2: Update in-tree ICU to release 71.1. r=platform-i18n-reviewers,jfkthame
...
Depends on D143273
Differential Revision: https://phabricator.services.mozilla.com/D143275
2022-04-10 09:17:54 +00:00
André Bargull
2d1c97da63
Bug 1763783 - Part 1: Remove no longer needed ICU patch. r=platform-i18n-reviewers,jfkthame
...
`UNUM_APPROXIMATELY_SIGN_FIELD` is now available as a draft API in ICU itself.
Differential Revision: https://phabricator.services.mozilla.com/D143273
2022-04-10 09:17:54 +00:00
Greg Tatum
852ecad7f2
Bug 1762659 - Use MozIntl for stand-alone display names in LangPackMatcher.jsm; r=Mardak,nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D142730
2022-04-01 21:39:17 +00:00
Greg Tatum
3a2de7b49d
Bug 1755961 - Delete the format cache in AppDateTimeFormat; r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D142470
2022-03-30 21:10:46 +00:00
Dan Minor
cbc20fad2b
Bug 1728849 - Protect l10nregistry sources with mutex; r=platform-i18n-reviewers,gregtatum
...
This changes from using RefCell to Mutex. RefCell is suitable for
single-threaded applications, but we are seeing concurrent access here
leading to crashes when the sources are mutated at the same time that
bundles are being generated.
This appears to have a minimal effect on the criterion benchmarks. Most of the
results are within +/- 2.0% of the baseline, with a few slower (worst is 9%
slower) and a few faster (best is 7% faster).
Differential Revision: https://phabricator.services.mozilla.com/D140053
2022-03-28 13:54:36 +00:00
Dan Minor
b12629beea
Bug 1757407 - Comment out criterion in l10nregistry-rs Cargo.toml; r=platform-i18n-reviewers,gregtatum
...
This comments out criterion to avoid vendoring it into mozilla-central.
It brings in duplicated crates and large test files. It can be re-enabled
easily by uncommenting it for local development.
Differential Revision: https://phabricator.services.mozilla.com/D139852
2022-03-25 20:39:43 +00:00
Dan Minor
16dc400c19
Bug 1757407 - Point to in-tree version of l10nregistry-rs; r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D139851
2022-03-25 20:39:43 +00:00
Dan Minor
80a80ab927
Bug 1757407 - Add l10nregistry-rs to mozilla-central; r=platform-i18n-reviewers,gregtatum,jfkthame,flod
...
This is a copy of git revision 9da98c6e5325a5f2997191727eaa82c0ebc2004c from
https://github.com/mozilla/l10nregistry-rs .
Differential Revision: https://phabricator.services.mozilla.com/D139850
2022-03-25 20:39:43 +00:00
Greg Tatum
4ab6ee38f3
Bug 1759577 - Create logic to check if live reloading is supported; r=platform-i18n-reviewers,dminor
...
Depends on D141003
Differential Revision: https://phabricator.services.mozilla.com/D141004
2022-03-22 15:26:09 +00:00
Greg Tatum
0737dd81d2
Bug 1755181 - Invalidate locale cache in AppDateTimeFormat; r=platform-i18n-reviewers,nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D140666
2022-03-22 15:19:47 +00:00
Randell Jesup
fcaf70841e
Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 18:47:08 +00:00
Noemi Erli
2390d257e6
Backed out changeset 12a59e5a50bf (bug 1207753) for causing build bustage CLOSED TREE
2022-03-16 18:32:51 +02:00
Randell Jesup
4b033a5256
Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 16:16:14 +00:00
Butkovits Atila
927ad62c6a
Backed out changeset a68ee4b09f92 (bug 1207753) for causing Hazard bustages. CLOSED TREE
2022-03-16 14:38:14 +02:00
Randell Jesup
7d4b5fae04
Bug 1207753 - Add MOZ_UNANNOTATED to all Mutexes/Monitors r=nika,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D140849
2022-03-16 12:01:14 +00:00
Emilio Cobos Álvarez
1353b25e32
Bug 1758997 - Remove RoInitialize/RoUninitialize from OSPreferences_win. r=Jamie
...
As per bug 1757647 comment 4, the main thread already initializes COM
early, and we should be able to rely on it in OSPreferences.
Differential Revision: https://phabricator.services.mozilla.com/D140745
2022-03-11 10:02:32 +00:00
Nick Alexander
230fa93996
Bug 1752968
- Pre: Make l10n gtests robust to changes to `aboutAbout.ftl`. r=eemeli
...
Differential Revision: https://phabricator.services.mozilla.com/D139963
2022-03-02 17:43:47 +00:00
Greg Tatum
669f31b897
Bug 1755519 - Add JSM for langpack matching logic; r=platform-i18n-reviewers,nordzilla
...
The TestUtils file is broken out as it will be shared with the
about:welcome browser chrome tests.
Differential Revision: https://phabricator.services.mozilla.com/D138830
2022-03-02 15:52:43 +00:00
Iulian Moraru
51fd8df2e2
Backed out 2 changesets (bug 1755519) for causing node test failures (About:welcome bundle out of date). CLOSED TREE
...
Backed out changeset 67e6561012ad (bug 1755519)
Backed out changeset 873d83eaa24e (bug 1755519)
2022-03-02 17:08:47 +02:00
Greg Tatum
2aa7af8502
Bug 1755519 - Add JSM for langpack matching logic; r=platform-i18n-reviewers,nordzilla
...
The TestUtils file is broken out as it will be shared with the
about:welcome browser chrome tests.
Differential Revision: https://phabricator.services.mozilla.com/D138830
2022-03-02 13:54:16 +00:00
Jonathan Kew
9f7ae29b2c
Bug 1757578 - For resolving font prefs, accept lang attribute with underscore in place of hyphen separators. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D139951
2022-03-02 13:15:27 +00:00
Kagami Sascha Rosylight
d91c23ad97
Bug 1756070 - Part 1: Add missing `override` keywords r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D139166
2022-02-21 13:50:12 +00:00
Francesco Lodolo (:flod)
b7b8c80192
Bug 1059603: Add pt-PT to available Accept-Languages locale, r=eemeli
...
Differential Revision: https://phabricator.services.mozilla.com/D138027
2022-02-07 16:45:07 +00:00
Sylvestre Ledru
caaedeee98
Bug 1753413 - fx doc: Remove whitespaces, trailing lines & windows CR r=andi,perftest-reviewers,sparky
...
Differential Revision: https://phabricator.services.mozilla.com/D137741
2022-02-03 18:34:58 +00:00
Jonathan Kew
67c4eb5567
Bug 1748061 - Make line-breaking behavior of fullwidth compatibility characters more compatible with UAX#14 and other browsers. r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D136216
2022-01-23 17:44:33 +00:00
Matthew Gaudet
bc10b96605
Bug 1748888
- Add ErrorResult parameter to PromiseNativeHandler callbacks r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D136423
2022-01-20 19:11:39 +00:00
Ting-Yu Lin
653f4b3694
Bug 1745113 Part 5 - Make grapheme cluster break iterators implement SegmentIteratorUtf16, and adapt the callers. r=necko-reviewers,jfkthame,kershaw
...
This is the main patch for the bug. It aims to change the grapheme cluster
break's `Next()` API by implementing SegmentIteratorUtf16 interface, and adapt
the callers. It shouldn't change the behavior.
While rewriting the caller, one caveat worth mentioning is the loop termination
condition. If the old code relies on `!AtEnd()` as the loop termination
condition, and it advances the iterator at the end of the loop, it meant
to *skip* its logic when the break position is at the end of the string. For
example, see the `mozTXTToHTMLConv::NumberOfMatches`.
This patch also hooks grapheme cluster break iterator into
Segmenter::TryCreate() interface.
Existing test coverage for the file changed:
- netwerk/test/unit/test_mozTXTToHTMLConv.js
- layout/reftests/forms/input/file/dynamic-max-width.html
Differential Revision: https://phabricator.services.mozilla.com/D135643
2022-01-13 18:36:04 +00:00
Ting-Yu Lin
e418a257b5
Bug 1745113 Part 3 - Change CountGraphemeClusters() to take a Span parameter. r=jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D135641
2022-01-13 18:36:04 +00:00
Ting-Yu Lin
948b11a2dc
Bug 1745113 Part 2 - Move ClusterReverseIterator into Segmenter.h, and rename it. r=necko-reviewers,kershaw
...
Include "nsLayoutUtils.h" in nsFileControlFrame to get rid of warnings in my
editor because it uses utilities such as `nsLayoutUtils::AppUnitWidthOfString`.
We compile it without issues because of unified build.
Differential Revision: https://phabricator.services.mozilla.com/D135640
2022-01-13 18:36:03 +00:00
Ting-Yu Lin
e522533f4e
Bug 1745113 Part 1 - Move ClusterIterator into Segmenter.h, and rename it. r=necko-reviewers,kershaw
...
This patch doesn't change the behavior. Just move the code around.
Differential Revision: https://phabricator.services.mozilla.com/D135639
2022-01-13 18:36:03 +00:00
Nika Layzell
e8f83d2043
Bug 1748718 - Part 3: Remove now-unnecessary xpidl constant casts, r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D135166
2022-01-07 20:35:15 +00:00
Erik Nordin
20f8e5c93a
Bug 1743657 - Link to DOM L10n Tutorial in Firefox Source Docs r=kpatenio?
...
Differential Revision: https://phabricator.services.mozilla.com/D134998
2022-01-04 21:51:38 +00:00
Masatoshi Kimura
a41588c2f6
Bug 1680139 - Add the ability for unEscapeURIForUI to disable re-escaping IDN blocklisted characters. r=m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D134401
2021-12-23 03:34:13 +00:00
Erik Nordin
d9a63c9302
Bug 1743659
- Part 2: Update Gecko's Localization to use the new l10nregistry-rs API r=zbraniecki,dminor,eemeli,smaug,emilio?,eemeli?,zbraniecki
...
- Updates Gecko's Fluent class to use the new ResourceId type,
which can be either optional or required regarding a particular resource.
- Adds JS tests verifying the new behavior.
Differential Revision: https://phabricator.services.mozilla.com/D133579
2021-12-22 19:08:38 +00:00
Erik Nordin
5a5e1c57ed
Bug 1743659
- Part 1: Update Gecko's L10nRegistry to use the new l10nregistry-rs API r=zbraniecki,dminor,eemeli,fluent-reviewers,webidl,smaug?,eemeli?,zbraniecki
...
- Updates Gecko's L10nRegistry class to use the new ResourceId type,
which can be either optional or required regarding a particular resource.
- Adds JS tests verifying the new behavior.
Differential Revision: https://phabricator.services.mozilla.com/D133578
2021-12-22 19:08:38 +00:00
Yoshi Cheng-Hao Huang
04e160dc7d
Bug 1746837 - Part 1: Include "mozilla/intl/MeasureUnitGenerated.h" in Spidermonkey. r=platform-i18n-reviewers,tcampbell,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D134303
2021-12-21 08:43:10 +00:00
Zibi Braniecki
7ec3a677e7
Bug 1746124 - Use nsIRunnablePriority::PRIORITY_RENDER_BLOCKING for Fluent async API calls. r=nordzilla,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D133845
2021-12-15 20:30:34 +00:00
Eemeli Aro
51b1f5c4fd
Bug 1596726 - Update documentation for legacy migration tools. r=flod
...
Differential Revision: https://phabricator.services.mozilla.com/D133640
2021-12-14 10:10:18 +00:00
Nika Layzell
7b2e6d4996
Bug 1741665 - Align nsCString's public size_type better with other C++ APIs, r=mccr8,geckoview-reviewers,agi
...
Differential Revision: https://phabricator.services.mozilla.com/D131422
2021-12-13 21:47:56 +00:00
Greg Tatum
a35948080a
Bug 1745564 - Change the location of the calendar Span in DisplayNames; r=dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D133656
2021-12-13 21:43:15 +00:00
Jonathan Kew
f80018a6b5
Bug 1240277 - Add hyphenation patterns for Indic languages. r=platform-i18n-reviewers,dminor
...
Using hyphenation patterns from https://github.com/santhoshtr/hyphenation .
The tests here are implemented as Mozilla reftests rather than added to WPT because I don't think
we can reasonably have such tests in WPT. The specific set of languages for which the UA supports
auto-hyphenation is not a normative requirement, and nor is the particular dictionary or algorithm
that will be used for any specific language. As such, the exact results are not defined by the
spec. (They may also change over time, if the hyphenation rules we use are updated, in which case
the tests will have to change accordingly.)
Differential Revision: https://phabricator.services.mozilla.com/D133558
2021-12-13 14:20:06 +00:00