Makoto Kato
1e6318b7bb
Bug 1851323 - Apply the latest line break rules. r=TYLin
...
Since some issues such as bug 1851323 are fixed by ICU4X 1.3's data rule file,
I would like to apply it to get feedback in Gecko.
Differential Revision: https://phabricator.services.mozilla.com/D187980
2023-09-13 05:11:41 +00:00
Bryan Olsson
3432a23987
Bug 1852843 - Add Santali (sat) to language names in mozIntl and language pack metadata, r=fluent-reviewers,flod
...
Differential Revision: https://phabricator.services.mozilla.com/D188062
2023-09-13 05:08:11 +00:00
Makoto Kato
ef2a0ed90f
Bug 1851105 - Use nsAString as parameter for WordBreaker::FindWord. r=TYLin
...
It is better to use nsAString rather than using pointer directly.
Differential Revision: https://phabricator.services.mozilla.com/D187256
2023-09-08 04:35:38 +00:00
Markus Stange
fa8bfb6bc7
Bug 1851263 - Rename nsIGlobalObject::AsInnerWindow to GetAsInnerWindow because it can return null. r=smaug
...
This is also the name that was originally suggested in https://bugzilla.mozilla.org/show_bug.cgi?id=218415#c53 .
Differential Revision: https://phabricator.services.mozilla.com/D187340
2023-09-04 04:06:30 +00:00
Jonathan Kew
74bf676eba
Bug 1845552 - patch 1 - Don't let the presence of an invalid-hyphen error (which may be ignored during StringPrepForDNS) mask the presence of other (non-ignorable) types of error in the URL. r=necko-reviewers,valentin
...
This change gives us 46 new passes on the IdnaTestV2 test collection, with just 6 failures remaining
(to be resolved by the next patch).
Differential Revision: https://phabricator.services.mozilla.com/D186866
2023-08-29 09:20:05 +00:00
Bryan Olsson
3c5034b8b8
Bug 1850027 - Added Bryan Olsson to Fluent reviewer documentation, r=flod DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D186808
2023-08-24 17:16:34 +00:00
Emilio Cobos Álvarez
95707c96bb
Bug 1849204 - Add generic atom hash keys that use the better distributed atom hash, and use it across the tree. r=mstange,xpcom-reviewers,credential-management-reviewers,sgalich,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D186496
2023-08-18 18:43:27 +00:00
Mike Hommey
713c4adb84
Bug 1849072 - Avoid instantiating char_traits<const char>. r=platform-i18n-reviewers,jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D186420
2023-08-17 08:51:39 +00:00
Eemeli Aro
a5dabe8f0d
Bug 1834305 - Remove intl/locale/PluralForm.sys.mjs as unused. r=nordzilla,devtools-reviewers
...
This library is now completely unused in m-c.
Differential Revision: https://phabricator.services.mozilla.com/D185699
2023-08-10 20:39:20 +00:00
Makoto Kato
778df10b83
Bug 1847869 - Update ICU4X document. r=TYLin,platform-i18n-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D185771
2023-08-10 06:51:38 +00:00
Travis Long
aa6cb926b7
Bug 1626969 - Include locale in Glean pings.r=chutten,supply-chain-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D185153
2023-08-07 11:02:56 +00:00
Makoto Kato
d8a2fdf7da
Bug 1719535 - Part 5. Add ICU4X based segmenter modules. r=TYLin,jfkthame
...
Depends on D167673
Differential Revision: https://phabricator.services.mozilla.com/D167675
2023-08-07 06:23:48 +00:00
Makoto Kato
80aa728f71
Bug 1719535 - Part 4. Add ICU4X Data Provider. r=platform-i18n-reviewers,dminor,sylvestre
...
ICU4X will be used by ECMA-402 implementation at future. So we should link it
to SpiderMonkey instead of libxul only.
Depends on D178157
Differential Revision: https://phabricator.services.mozilla.com/D167673
2023-08-07 06:23:48 +00:00
Makoto Kato
dac2cb31e6
Bug 1719535 - Part 2. Add customized icu_testdata crate in tree. r=TYLin
...
When using baked data provider in icu_capi, it uses icu_testdata crate.
But we add customized baked data as patched icu_testdata.
Depends on D167670
Differential Revision: https://phabricator.services.mozilla.com/D178156
2023-08-07 06:23:44 +00:00
Makoto Kato
b24c1342e2
Bug 1719535 - Part 1. Update ICU4X data generator script. r=TYLin,platform-i18n-reviewers,gregtatum
...
Generate baked data in intl/icu4x_data/data/baked, instead of postcard since ICU4X 1.2 can use custom baked data without modifying icu_capi.
Differential Revision: https://phabricator.services.mozilla.com/D167670
2023-08-07 06:23:43 +00:00
Cristina Horotan
29d764fc02
Backed out changeset 672918ecc3bc (bug 1626969) for causing mach failures on a CLOSED TREE
2023-08-04 22:09:05 +03:00
Travis Long
de399e3600
Bug 1626969 - Include locale in Glean pings.r=chutten,supply-chain-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D185153
2023-08-04 18:41:55 +00:00
Sandor Molnar
13c7e4a350
Backed out 14 changesets (bug 1719535) for causing mochitest failures in accessible/tests/browser/mac/browser_text_basics.js CLOSED TREE
...
Backed out changeset 338c2c8d91af (bug 1719535)
Backed out changeset 3fdb2e999aba (bug 1719535)
Backed out changeset 63b9d2064827 (bug 1719535)
Backed out changeset 09c216cdbbc8 (bug 1719535)
Backed out changeset 29977dc00fb3 (bug 1719535)
Backed out changeset d3f8850a343b (bug 1719535)
Backed out changeset 90f1f621031f (bug 1719535)
Backed out changeset 52ca9bdc5bd4 (bug 1719535)
Backed out changeset 94536f0d5a1f (bug 1719535)
Backed out changeset d615264f9f5f (bug 1719535)
Backed out changeset f16f9e583378 (bug 1719535)
Backed out changeset e1abdee07587 (bug 1719535)
Backed out changeset 45f9ad406428 (bug 1719535)
Backed out changeset caa2b8a731dc (bug 1719535)
2023-08-02 14:55:26 +03:00
Makoto Kato
791b803c53
Bug 1719535 - Part 5. Add ICU4X based segmenter modules. r=TYLin,jfkthame
...
Depends on D167673
Differential Revision: https://phabricator.services.mozilla.com/D167675
2023-08-02 10:32:50 +00:00
Makoto Kato
696dad9f78
Bug 1719535 - Part 4. Add ICU4X Data Provider. r=platform-i18n-reviewers,dminor,sylvestre
...
ICU4X will be used by ECMA-402 implementation at future. So we should link it
to SpiderMonkey instead of libxul only.
Depends on D178157
Differential Revision: https://phabricator.services.mozilla.com/D167673
2023-08-02 10:32:49 +00:00
Makoto Kato
3b5868138e
Bug 1719535 - Part 2. Add customized icu_testdata crate in tree. r=TYLin
...
When using baked data provider in icu_capi, it uses icu_testdata crate.
But we add customized baked data as patched icu_testdata.
Depends on D167670
Differential Revision: https://phabricator.services.mozilla.com/D178156
2023-08-02 10:32:46 +00:00
Makoto Kato
caac2ca95c
Bug 1719535 - Part 1. Update ICU4X data generator script. r=TYLin,platform-i18n-reviewers,gregtatum
...
Generate baked data in intl/icu4x_data/data/baked, instead of postcard since ICU4X 1.2 can use custom baked data without modifying icu_capi.
Differential Revision: https://phabricator.services.mozilla.com/D167670
2023-08-02 10:32:46 +00:00
Rob Wu
ae769e9e02
Bug 1845804 - Put WebExtensions under Gecko in the overview r=mossop,perftest-reviewers,devtools-reviewers,afinder
...
... and rename "web extensions" to "WebExtensions".
Differential Revision: https://phabricator.services.mozilla.com/D184765
2023-07-28 14:21:51 +00:00
serge-sans-paille
bcc4d5e330
Bug 1845440 - Get rid of useless global constructor for kBidiLevelNone r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D184550
2023-07-26 09:10:12 +00:00
Masatoshi Kimura
821e22c880
Bug 1844908 - Remove pre-Win10-specific codepath from OSPreferences. r=jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D184294
2023-07-26 08:52:51 +00:00
Natalia Csoregi
72a7b95555
Backed out 19 changesets (bug 1844908) for causing win bustage on AvailableMemoryTracker.cpp. CLOSED TREE
...
Backed out changeset 44c66f2233cf (bug 1844908)
Backed out changeset a8010ff534bf (bug 1844908)
Backed out changeset 225dc3aeb220 (bug 1844908)
Backed out changeset a1414db64e33 (bug 1844908)
Backed out changeset 7f1e0a527839 (bug 1844908)
Backed out changeset 6dc7646d1ffa (bug 1844908)
Backed out changeset 8d715131510f (bug 1844908)
Backed out changeset 4b6fe8a4e7db (bug 1844908)
Backed out changeset 2b419fabf1e8 (bug 1844908)
Backed out changeset af84e701d616 (bug 1844908)
Backed out changeset 2fa203969ec5 (bug 1844908)
Backed out changeset 2b3d2df94db3 (bug 1844908)
Backed out changeset 7eca452f5fd7 (bug 1844908)
Backed out changeset 3d961cf25afe (bug 1844908)
Backed out changeset 3c59143f8dd7 (bug 1844908)
Backed out changeset ab50c6c5425a (bug 1844908)
Backed out changeset b2c5636df673 (bug 1844908)
Backed out changeset e9a0f1c6760c (bug 1844908)
Backed out changeset 945ccbedde0b (bug 1844908)
2023-07-25 19:55:35 +03:00
Tooru Fujisawa
0d2a3514f2
Bug 1844956 - Part 2: Remove FluentSyntax.jsm. r=emilio
...
Depends on D184329
Differential Revision: https://phabricator.services.mozilla.com/D184330
2023-07-25 15:35:12 +00:00
Tooru Fujisawa
d1c62e7a6e
Bug 1844956 - Part 1: Use fluent-rs to collect TextElement in browser_misused_characters_in_strings.js. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D184329
2023-07-25 15:35:12 +00:00
Masatoshi Kimura
3edc1a00ef
Bug 1844908 - Remove pre-Win10-specific codepath from OSPreferences. r=jfkthame
...
Differential Revision: https://phabricator.services.mozilla.com/D184294
2023-07-25 14:41:02 +00:00
Jonathan Kew
df97265d72
Bug 1844830 - patch 2 - Micro-optimize grapheme cluster checks used during textrun creation. r=gfx-reviewers,lsalzman
...
Depends on D184311
Differential Revision: https://phabricator.services.mozilla.com/D184312
2023-07-24 08:37:19 +00:00
Emilio Cobos Álvarez
bf2d9b9d37
Bug 1842027 - Make <input type=number> localization faster. r=masayuki
...
Using the fast unlocalized parser first exposes a subtle difference
between the ICU parser (which uses `double`), and Decimal::fromString
(which has a larger range).
Check for iee754 finiteness explicitly, matching our previous behavior,
and the expectation of this subtest:
https://searchfox.org/mozilla-central/rev/a3852ea8db25c759bc8b108aeec870d66c95452c/testing/web-platform/tests/html/semantics/forms/the-input-element/number.html#33
That check matches this Blink code:
https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:third_party/blink/renderer/core/html/parser/html_parser_idioms.cc;l=103;drc=0d1bbe8de137aaae7c956a33249eb840a0191627
This patch avoids a bunch of number->string->number conversions in the
common case where the value comes from the value attribute and thus
parses fine without localization shenanigans.
Differential Revision: https://phabricator.services.mozilla.com/D183254
2023-07-12 15:28:07 +00:00
Henri Sivonen
2dbc784d5a
Bug 1814862 - Build ICU with UCONFIG_NO_BREAK_ITERATION r=anba
...
Differential Revision: https://phabricator.services.mozilla.com/D168970
2023-07-07 07:16:30 +00:00
Mike Hommey
d07e416554
Bug 1841918 - Fix new l10nregistry-rs warnings with rustc 1.71. r=eemeli
...
Differential Revision: https://phabricator.services.mozilla.com/D182849
2023-07-06 09:51:30 +00:00
André Bargull
a5486477fc
Bug 1519167 - Part 30: Add methods to retrieve time zone transitions and utf-offsets from local time. r=spidermonkey-reviewers,allstarschh
...
The `GetNamedTimeZoneEpochNanoseconds`, `GetNamedTimeZoneNextTransition`, and
`GetNamedTimeZonePreviousTransition` abstract operations from the Temporal API
proposal require these additional methods.
Differential Revision: https://phabricator.services.mozilla.com/D174287
2023-06-21 20:27:42 +00:00
André Bargull
6b464f9394
Bug 1838173: Allow to set the Gregorian change date for ISO-8601 calendars. r=platform-i18n-reviewers,dminor
...
Add a patch to work around <https://unicode-org.atlassian.net/jira/software/c/projects/ICU/issues/ICU-22412 >.
Differential Revision: https://phabricator.services.mozilla.com/D180796
2023-06-14 05:38:46 +00:00
Mike Hommey
de03354dee
Bug 1837098 - Move l10nregistry tests to a separate crate. r=dminor,supply-chain-reviewers,eemeli
...
Differential Revision: https://phabricator.services.mozilla.com/D180159
2023-06-07 23:07:05 +00:00
Mark Banner
6725448902
Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00
Mike Hommey
a13b4ea9e8
Bug 1836883. Avoid passing ref function arguments to Rc::from_raw. r=eemeli
...
It is unfortunately undefined behavior and leads to problems with LLVM
16.
Differential Revision: https://phabricator.services.mozilla.com/D180061
2023-06-06 08:55:21 +00:00
André Bargull
ef5a81c474
Bug 1795756 - Part 5: Support roundingMode, roundingIncrement, and stripTrailingZero for PluralRules. r=platform-i18n-reviewers,dminor
...
Required updates for the next patch in this stack.
Also replaces `PluralRulesOptions::RoundingPriority` with an alias to
`NumberFormatOptions::RoundingPriority`, so we don't have to duplicate the
`RoundingPriority` and `RoundingMode` enums.
Differential Revision: https://phabricator.services.mozilla.com/D179946
2023-06-06 06:42:07 +00:00
Rob Wu
3c0c3a2676
Bug 1836482 - Replace AddonManager.jsm imports with AddonManager.sys.mjs r=Standard8,webcompat-reviewers,twisniewski
...
This patch was generated as follows:
Run:
`./mach esmify --imports . --prefix=toolkit/mozapps/extensions/AddonManager`
In the output there are linter/prettifier errors due to unused
XPCOMUtils or separate importESModule calls. These have been fixed
manually and verified with `./mach lint --outgoing`.
The `esmify` script also inserts many unwanted newlines around imports
that are broken on two lines due to length. Due to the number of these,
I fixed them programatically.
1. Create patch from the changes so far.
2. From the patch, delete all lines that consist of "+" (i.e. added blank line).
3. Reset the working dir and apply the revised patch.
4. Verify that the diff between step 1 and 3 looks reasonable.
5. Verify that this patch as a whole looks reasonable.
Commands:
```
git diff > rename.diff
:%g/^+$/d
git commit -va -m WIP-rename
git revert HEAD
git apply --recount rename.diff
git diff HEAD^ # and verify that the removed lines are ok.
git commit -va # one last review to verify correctness of whole patch.
git rebase -i HEAD~3 # drop the WIP + reverted commit, pick only the last.
```
`git apply` has the `--recount` option to force it to ignore mismatches
in line counts, which happens because we deleted added lines (^+$)
without fixing up the line counts in the file headers.
Differential Revision: https://phabricator.services.mozilla.com/D179874
2023-06-04 13:44:45 +00:00
Mike Hommey
96c67f7c0b
Bug 1836419 - Remove the serial_test dependency. r=nordzilla,supply-chain-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D179754
2023-06-02 21:49:16 +00:00
Mark Banner
5d59c7aecd
Bug 1824613 - Convert consumers of toolkit/mozapps/extensions/ to import ES modules directly. r=extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,sync-reviewers,sgalich,bytesized,robwu,skhamis
...
Depends on D179819
Differential Revision: https://phabricator.services.mozilla.com/D179820
2023-06-02 20:00:35 +00:00
Kris Maglione
fbc33fd683
Bug 1648545: Part 2 - Load SpecialPowers in XPCShellContentUtils. r=ahal,application-update-reviewers,nalexander,devtools-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D119449
2023-05-27 03:46:44 +00:00
Noemi Erli
06b68d0d45
Backed out 4 changesets (bug 1648545) for causing mass failures
...
Backed out changeset ac3d639547fa (bug 1648545)
Backed out changeset f63760c845f3 (bug 1648545)
Backed out changeset 652b48b10d37 (bug 1648545)
Backed out changeset 1ca7abd873d1 (bug 1648545)
2023-05-26 02:12:58 +03:00
Kris Maglione
1abe5de918
Bug 1648545: Part 2 - Load SpecialPowers in XPCShellContentUtils. r=ahal,application-update-reviewers,nalexander
...
Differential Revision: https://phabricator.services.mozilla.com/D119449
2023-05-25 22:04:31 +00:00
André Bargull
9e6f20b341
Bug 1824744
- Part 7: Remove no longer needed ICU draft API guards. r=platform-i18n-reviewers,gregtatum
...
`UNUM_APPROXIMATELY_SIGN_FIELD` is no longer a draft API.
Depends on D176268
Differential Revision: https://phabricator.services.mozilla.com/D176269
2023-05-25 20:41:02 +00:00
André Bargull
3df7435860
Bug 1824744
- Part 4: Update language tag mappings. r=platform-i18n-reviewers,gregtatum
...
- Update the URL because the "core.zip" is no longer present.
- Add code to remove redundant language mappings.
Depends on D176265
Differential Revision: https://phabricator.services.mozilla.com/D176266
2023-05-25 20:41:01 +00:00
André Bargull
806d734076
Bug 1824744
- Part 3: Update tzdata files to 2023c. r=platform-i18n-reviewers,gregtatum
...
Depends on D176264
Differential Revision: https://phabricator.services.mozilla.com/D176265
2023-05-25 20:40:54 +00:00
André Bargull
9f5d869662
Bug 1824744
- Part 2: Update in-tree ICU to 73. r=platform-i18n-reviewers,gregtatum
...
Depends on D176263
Differential Revision: https://phabricator.services.mozilla.com/D176264
2023-05-25 20:40:43 +00:00
André Bargull
a1ca2d701e
Bug 1824744
- Part 1: Update or remove ICU patches. r=platform-i18n-reviewers,gregtatum
...
Remove no longer needed backports for ICU-22198, ICU-22206, and CLDR-16399.
Update WASI patch to apply cleanly on ICU 73.
Differential Revision: https://phabricator.services.mozilla.com/D176263
2023-05-25 20:40:42 +00:00
Natalia Csoregi
e87ecf485e
Backed out 3 changesets (bug 1834222, bug 1834176) for causing RemoteProcessMonitor failures. CLOSED TREE
...
Backed out changeset 346d3a1568dd (bug 1834222)
Backed out changeset ea1d8b634bfc (bug 1834176)
Backed out changeset 74d1880272d3 (bug 1834176)
2023-05-24 04:29:45 +03:00
Mark Banner
fbc15bdb60
Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 19:09:29 +00:00
Noemi Erli
aa2f146d78
Backed out 2 changesets (bug 1834176) for causing xpc failures in test_unload.js CLOSED TREE
...
Backed out changeset 57876d77a652 (bug 1834176)
Backed out changeset ae2f0837b528 (bug 1834176)
2023-05-23 12:14:37 +03:00
Mark Banner
e3e9a991b8
Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
...
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 08:13:08 +00:00
Mark Banner
2a53076d43
Bug 1826063 - Automatic fixes for enabling Prettier on production xhtml and html files. r=mossop,webdriver-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,fxview-reviewers,sgalich,nalexander,devtools-reviewers,sclements,denschub,robwu,owlish
...
Differential Revision: https://phabricator.services.mozilla.com/D177938
2023-05-20 12:26:56 +00:00
Mark Banner
130a655906
Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
...
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
8219a5c503
Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
...
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Emily McMinn
55de180877
Bug 1828668 - Properly handle zh-TW langpack and add test case r=gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D177111
2023-05-08 21:26:23 +00:00
Greg Tatum
a5ebe9f40b
Bug 1830989 - Add a document.l10n.setArgs method; r=webidl,smaug,eemeli
...
Differential Revision: https://phabricator.services.mozilla.com/D176958
2023-05-08 14:24:54 +00:00
Dana Keeler
f0596227b1
Bug 1811645 - avoid an American English colloquialism meaning "nonsense" r=Gijs
...
Differential Revision: https://phabricator.services.mozilla.com/D175802
2023-04-20 22:24:00 +00:00
serge-sans-paille
c034919767
Bug 1824511 - Make intl/unicharutil/util buildable outside of a unified build environment r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D173611
2023-03-30 13:48:32 +00:00
serge-sans-paille
120505b927
Bug 1824510 - Make intl/locale buildable outside of a unified build environment r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D173610
2023-03-30 13:48:32 +00:00
serge-sans-paille
95a3a332df
Bug 1824509 - Make intl/l10n buildable outside of a unified build environment r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D173609
2023-03-30 13:48:31 +00:00
serge-sans-paille
cd880dc521
Bug 1824508 - Make intl/components buildable outside of a unified build environment r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D173608
2023-03-30 13:48:31 +00:00
CanadaHonk
91709586ba
Bug 1801379 - Migrate Sinon.jsm to an ES module r=extension-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,fxview-reviewers,devtools-reviewers,Standard8,nchevobbe,sclements,dimi,mconley,bytesized,robwu
...
Migrated `testing/modules/Sinon.sys.mjs` to an ES module.
`testing` should now be 100% ESM 🎉
Differential Revision: https://phabricator.services.mozilla.com/D173643
2023-03-29 07:34:10 +00:00
André Bargull
3e45456337
Bug 1824301: Update time zone data to tzdata2023a. r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D173657
2023-03-29 06:17:26 +00:00
Jonathan Kew
b3fc2def82
Bug 208789 - patch 1 - Create an intl::GeneralCategory enum for UnicodeProperties::CharType() to return, to avoid directly referring to ICU4C constants or mapping via harfbuzz constants. r=platform-i18n-reviewers,nordzilla
...
No change in behavior; this just gives us our own version of the general category constants,
so we can avoid depending on ICU's constants elsewhere in the codebase.
Differential Revision: https://phabricator.services.mozilla.com/D173203
2023-03-23 13:54:33 +00:00
André Bargull
32434f8e6b
Bug 1818103: Revert date format for en-CA. r=platform-i18n-reviewers,jfkthame
...
Revert the date format for en-CA per <https://github.com/unicode-org/cldr/pull/2759 >.
The actual patch is based on <https://github.com/unicode-org/icu/pull/2368 >.
Differential Revision: https://phabricator.services.mozilla.com/D173406
2023-03-23 09:26:42 +00:00
Andi-Bogdan Postelnicu
fa5d4cca1f
Bug 1660405 - Move away from mozilla::IsFinite in favor of std::isfinite. r=sergesanspaille
...
Differential Revision: https://phabricator.services.mozilla.com/D173036
2023-03-22 11:35:33 +00:00
Andi-Bogdan Postelnicu
10f49d4180
Bug 1660405 - Move away from mozilla::IsNaN in favor of std::isnan. r=nbp,media-playback-reviewers,sergesanspaille,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D173035
2023-03-22 11:35:33 +00:00
Stanca Serban
e31a178029
Backed out 7 changesets (bug 1660405) for causing bustages on Linux x64 opt. CLOSED TREE
...
Backed out changeset ad1a5f59214f (bug 1660405)
Backed out changeset a39e95f0aafe (bug 1660405)
Backed out changeset 48629ee0d70d (bug 1660405)
Backed out changeset 8419b99aab60 (bug 1660405)
Backed out changeset 535cc12c8bed (bug 1660405)
Backed out changeset e27052da4927 (bug 1660405)
Backed out changeset 11b0f9cf8091 (bug 1660405)
2023-03-22 13:05:53 +02:00
Andi-Bogdan Postelnicu
0b692b5a96
Bug 1660405 - Move away from mozilla::IsFinite in favor of std::isfinite. r=sergesanspaille
...
Differential Revision: https://phabricator.services.mozilla.com/D173036
2023-03-22 09:27:57 +00:00
Andi-Bogdan Postelnicu
a5d28acdd6
Bug 1660405 - Move away from mozilla::IsNaN in favor of std::isnan. r=nbp,media-playback-reviewers,sergesanspaille,padenot
...
Differential Revision: https://phabricator.services.mozilla.com/D173035
2023-03-22 09:27:56 +00:00
Tom Schuster
7b3f9f5ef0
Bug 1822980 - Fix system ICU build error. r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D172978
2023-03-21 15:13:23 +00:00
Nika Layzell
3b40268cc1
Bug 1818305 - Part 2: Add a streamStatus method to nsIInputStream, r=xpcom-reviewers,necko-reviewers,geckoview-reviewers,valentin,jesup,m_kato,mccr8
...
This is semantically similar to the existing available() method, however will
not block, and doesn't need to do the work to actually determine the number of
available bytes.
As part of this patch, I also fixed one available() implementation which was
incorrectly throwing NS_BASE_STREAM_WOULD_BLOCK.
Differential Revision: https://phabricator.services.mozilla.com/D170697
2023-03-15 19:52:34 +00:00
Tom Schuster
c46852b04b
Bug 1709867 - Add a ICU-only DateTimeInfo::timeZoneId method. r=anba,platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D169611
2023-03-15 13:53:54 +00:00
Jonathan Kew
91152cebf4
Bug 1820504 - Optimize GraphemeClusterBreakIteratorUtf16::Next by making the evaluation of baseIsEmoji lazy. r=TYLin
...
This doesn't change behavior, but takes the emoji property lookup out of the hot path.
Credit to the Betterbird project for noting this in their profiling work, as recorded in
https://bugzilla.mozilla.org/show_bug.cgi?id=1812386#c7
Differential Revision: https://phabricator.services.mozilla.com/D171698
2023-03-07 09:51:12 +00:00
Emilio Cobos Álvarez
f3f4f3270c
Bug 1819664 - Notify chrome docs when async translation work is done. r=smaug,Gijs
...
This prototypes the proposal in bug 1738056 comment 22.
Depends on D171359
Differential Revision: https://phabricator.services.mozilla.com/D171360
2023-03-04 00:04:21 +00:00
Emilio Cobos Álvarez
3d49ec4825
Bug 1819664 - Fix unsettled promise handling in Localization. r=smaug
...
Otherwise we have some promises that may never resolve. This causes
issues in
toolkit/content/tests/widgets/test_videocontrols_jsdisabled.html with
the previous patch, for example.
Differential Revision: https://phabricator.services.mozilla.com/D171564
2023-03-03 22:18:11 +00:00
serge-sans-paille
9b1f15288f
Bug 1819822 - Make intl buildable outside of a unified build environment r=andi
...
Depends on D171428
Differential Revision: https://phabricator.services.mozilla.com/D171429
2023-03-02 07:44:31 +00:00
Jonathan Kew
81d930a594
Bug 1819025 - Don't consider following join-controls when determining whether a space is collapsible. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D171061
2023-02-28 09:58:36 +00:00
serge-sans-paille
81dddc58d9
Bug 1818441 - Make intl/locale/tests/gtest buildable outside of a unified build environment r=andi
...
Depends on D170723
Differential Revision: https://phabricator.services.mozilla.com/D170724
2023-02-27 13:42:58 +00:00
serge-sans-paille
ef6c3eca15
Bug 1818439 - Make intl/gtest buildable outside of a unified build environment r=andi
...
Depends on D170721
Differential Revision: https://phabricator.services.mozilla.com/D170722
2023-02-27 13:42:58 +00:00
serge-sans-paille
32390506b8
Bug 1817716 - Make intl/uconv buildable outside of a unified build environment r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D170321
2023-02-21 18:57:45 +00:00
Marian-Vasile Laza
3db46c3cc3
Backed out 9 changesets (bug 1817715, bug 1817721, bug 1817716, bug 1817719, bug 1817720, bug 1817722, bug 1817718, bug 1817714, bug 1817717) for BP-hybrid bustages on PacketDumper.h.
...
Backed out changeset b582db8692bb (bug 1817722)
Backed out changeset f1d37a26a9ea (bug 1817721)
Backed out changeset f0991bfb779c (bug 1817720)
Backed out changeset 42c27b8d075b (bug 1817719)
Backed out changeset 67f07f966ef3 (bug 1817718)
Backed out changeset 408aa730ae68 (bug 1817717)
Backed out changeset 708b5529e7da (bug 1817716)
Backed out changeset f0a3ca660b68 (bug 1817715)
Backed out changeset 36af23356e21 (bug 1817714)
2023-02-21 17:57:00 +02:00
serge-sans-paille
bf8cd83254
Bug 1817716 - Make intl/uconv buildable outside of a unified build environment r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D170321
2023-02-21 13:12:26 +00:00
Stanca Serban
771d982cfc
Backed out 9 changesets (bug 1817714, bug 1817722, bug 1817721, bug 1817719, bug 1817717, bug 1817720, bug 1817715, bug 1817716, bug 1817718) for causing bp-hybrid bustages in nsFind.cpp. CLOSED TREE
...
Backed out changeset 8acd5a2263f9 (bug 1817722)
Backed out changeset 299f412fa933 (bug 1817721)
Backed out changeset 345907a5a764 (bug 1817720)
Backed out changeset d710584cc1ee (bug 1817719)
Backed out changeset 7a581148ea00 (bug 1817718)
Backed out changeset 0b9d922e895a (bug 1817717)
Backed out changeset 2878e5488069 (bug 1817716)
Backed out changeset 97b49222483f (bug 1817715)
Backed out changeset a556e575cc13 (bug 1817714)
2023-02-21 11:06:43 +02:00
serge-sans-paille
94eb48d31d
Bug 1817716 - Make intl/uconv buildable outside of a unified build environment r=andi
...
Depends on D170320
Differential Revision: https://phabricator.services.mozilla.com/D170321
2023-02-21 08:05:45 +00:00
serge-sans-paille
f44c2c4e4d
Bug 1817309 - Make intl/hyphenation/glue buildable outside of a unified build environment r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D170129
2023-02-19 21:40:38 +00:00
Norisz Fay
d85572c196
Backed out 11 changesets (bug 1817309, bug 1817315, bug 1817313, bug 1817317, bug 1817310, bug 1817314, bug 1817308
, bug 1817312, bug 1817311, bug 1817316, bug 1817318) for causing build bustages on nss_secutil.h CLOSED TREE
...
Backed out changeset 288b4848b023 (bug 1817308
)
Backed out changeset 6ac5107e1c81 (bug 1817309)
Backed out changeset 6f6e7a258930 (bug 1817310)
Backed out changeset 32cadd62fec3 (bug 1817311)
Backed out changeset 5bfcee2bfb8b (bug 1817312)
Backed out changeset bfd59ae03c4f (bug 1817313)
Backed out changeset 0080bdd6ab3f (bug 1817314)
Backed out changeset e1e81a3a933d (bug 1817315)
Backed out changeset 151d9b5d1883 (bug 1817316)
Backed out changeset 1b03cabc6e5a (bug 1817317)
Backed out changeset 52b44c5d4b08 (bug 1817318)
2023-02-19 18:37:26 +02:00
serge-sans-paille
5031b976cd
Bug 1817309 - Make intl/hyphenation/glue buildable outside of a unified build environment r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D170129
2023-02-19 15:33:56 +00:00
Csoregi Natalia
41e332d499
Backed out 11 changesets (bug 1817308
, bug 1817311, bug 1817317, bug 1817310, bug 1817309, bug 1817314, bug 1817316, bug 1817318, bug 1817313, bug 1817312, bug 1817315) for causing hybrid bustage on WrapperFactory.cpp. CLOSED TREE
...
Backed out changeset 1fb2fdbeecec (bug 1817308
)
Backed out changeset 7153cb681119 (bug 1817309)
Backed out changeset 44e4198e2cdc (bug 1817310)
Backed out changeset ef9b097a07c4 (bug 1817311)
Backed out changeset e6f4e9a4cfc6 (bug 1817312)
Backed out changeset 4fa0b794c1e1 (bug 1817313)
Backed out changeset 13841a7b93a6 (bug 1817314)
Backed out changeset af16df862459 (bug 1817315)
Backed out changeset a157a7c3146f (bug 1817316)
Backed out changeset f9048fa7e1d9 (bug 1817317)
Backed out changeset 10219437a634 (bug 1817318)
2023-02-18 01:58:57 +02:00
serge-sans-paille
bb77b1790c
Bug 1817309 - Make intl/hyphenation/glue buildable outside of a unified build environment r=andi
...
Differential Revision: https://phabricator.services.mozilla.com/D170129
2023-02-17 22:17:45 +00:00
Andi-Bogdan Postelnicu
d7e8a09c21
Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
...
Updated with clang-format version 15.0.5 (taskcluster-MKK8dHUpQkGfPLA793lizg)
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D168658
2023-02-13 15:02:07 +00:00
Eemeli Aro
47c30f3625
Bug 1815410 - Add documentation for fluent.migrate TransformPattern. r=flod DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D169058
2023-02-07 17:44:10 +00:00
Bob Owen
72886c7966
Bug 1809657: Start next line break chunk from start of previous search when no breaks found. r=jfkthame
...
This means that we start from a known non-break and that we shouldn't be in any
danger of causing false breaks once Uniscribe gets to unprocessed characters.
This also makes the crash tests manual and debug only.
Manual because now that the win32k pref is default on and not dynamic the tests
will not run on try any more.
Debug only so that we don't include code in opt builds that is only for manual
tests.
Differential Revision: https://phabricator.services.mozilla.com/D167271
2023-01-20 13:12:06 +00:00
Emilio Cobos Álvarez
46df319668
Bug 1805939 - Have a central source of truth for desktop environment detection. r=stransky,jld
...
Gfx blocklist doesn't actually use the desktop environment filter so
remove that functionality. We can reintroduce it in the future if we
need it.
Differential Revision: https://phabricator.services.mozilla.com/D166090
2023-01-20 11:26:11 +00:00
Masatoshi Kimura
79423c52bd
Bug 1789556 - Tests for bug 1787633. r=m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D156638
2023-01-17 16:16:02 +00:00
Julian Seward
d71b143fb3
Bug 1808182 - Use of uninitialised values originating from NS_GetComplexLineBreaks (in nsPangoBreaker.cpp). r=jfkthame.
...
NS_GetComplexLineBreaks (in nsPangoBreaker.cpp) adds elements of type
`PangoLogAttr` to an array with `attrBuffer.AppendElements(aLength + 1);`.
However, `PangoLogAttr` doesn't have a default constructor, so those elements
are uninitialised, and that eventually leaks back to the the caller,
`ComplexBreaker::GetBreaks` and are used in a couple of different places after
that. This patch fixes that by manually zeroing out the new area.
Differential Revision: https://phabricator.services.mozilla.com/D165846
2023-01-03 10:40:34 +00:00
Sylvestre Ledru
dcc6c87d78
no bug - remove +x on dic files r=platform-i18n-reviewers,jfkthame DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D165680
2022-12-30 18:46:07 +00:00
Sylvestre Ledru
e2b52a1324
Bug 1807899 - Remove the trailing whitespace and Windows CR on md files r=linter-reviewers,necko-reviewers,marco,jesup
...
Differential Revision: https://phabricator.services.mozilla.com/D165662
2022-12-30 15:23:21 +00:00
Jonathan Kew
859eb99179
Bug 1806042 - Update tests to expect normal spaces rather than U+202F/2009 in formatted date/time strings. r=gregtatum
...
We'll need to revert this when we're ready to disable the workaround.
Depends on D165408
Differential Revision: https://phabricator.services.mozilla.com/D165409
2022-12-24 10:35:10 +00:00
Jonathan Kew
34a08b7422
Bug 1806042 - Replace Narrow No-Break Space (U+202F) and Thin Space (U+2009) in DateTimeFormat/DateTimeIntervalFormat output with regular Space to mitigate breakage on fragile websites. r=anba
...
The data for a bunch of locales was updated in ICU 72 to use U+202F and U+2009 in places where previously it had regular Space characters.
Unfortunately, this breaks some sites that attempt to parse the formatted output using naive regular expressions (or similar)
that just expect space, rather than "any whitespace", and fail to match against the new formatted output.
To mitigate this, until more browsers update to the newer ICU/CLDR data and pressure builds on sites to fix such fragile scripts,
we can post-process the formatted output from ICU to replace these "special" spaces with standard ASCII space characters.
This workaround is designed to be easily disabled at build time by just changing the DATE_TIME_FORMAT_REPLACE_SPECIAL_SPACES #define,
when we're ready to try re-enabling the updated formats.
Differential Revision: https://phabricator.services.mozilla.com/D165408
2022-12-24 10:35:10 +00:00
Marco Castelluccio
f69e697461
Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D165395
2022-12-23 22:45:46 +00:00
Andrew McCreight
ce28c41da0
Bug 1805931, part 2 - Automated removal of uses of ROOT and UNROOT CC macros. r=smaug
...
As of the prior patch, these are no longer needed. I removed
these with a script, then ran clang-format on the files, then
manually reverted a few unrelated changed from the formatter.
Differential Revision: https://phabricator.services.mozilla.com/D164829
2022-12-15 19:45:01 +00:00
Sylvestre Ledru
baca9eb94e
Bug 1802689 - cargo.toml: more consistency in the author names
...
Differential Revision: https://phabricator.services.mozilla.com/D163769
2022-12-13 09:14:44 +00:00
Sylvestre Ledru
04363d3827
Bug 1802689 - Add missing licenses info in Cargo.toml r=mhoye,necko-reviewers,kershaw,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D163157
2022-12-13 09:14:44 +00:00
Yoshi Cheng-Hao Huang
c19e34d15c
Bug 1797506 - Add EnsureAndLoadStringBundle to preload the string bundle on main thread. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D163309
2022-12-12 13:25:09 +00:00
Eemeli Aro
f08c01b802
Bug 1804404 - Update l10n documentation due to DTD & .inc removal. r=flod
...
Differential Revision: https://phabricator.services.mozilla.com/D164047
2022-12-07 11:50:39 +00:00
Mark Banner
ff47c36f9b
Bug 1803914
- Automatically replace Cu.reportError with console.error (misc). r=mossop
...
Differential Revision: https://phabricator.services.mozilla.com/D163772
2022-12-06 14:34:57 +00:00
Greg Tatum
d3921e547e
Bug 1685180 - Debug assert Fluent strings where replaced variables are not provided; r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D161996
2022-12-01 21:40:56 +00:00
André Bargull
5e2b3f9f08
Bug 1803516: Update time zone data to tzdata2022g. r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D163568
2022-12-01 14:05:39 +00:00
André Bargull
86a29191ae
Bug 1792775 - Part 11.1: Update expected test results in non-SpiderMonkey files. r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D162707
2022-11-23 17:56:18 +00:00
André Bargull
ff0958538f
Bug 1792775 - Part 8: Remove no longer needed ICU draft API guards. r=platform-i18n-reviewers,jfkthame
...
`UDAT_STANDALONE_NARROW_QUARTERS` has been promoted from draft to stable.
Differential Revision: https://phabricator.services.mozilla.com/D160186
2022-11-23 17:56:16 +00:00
André Bargull
c79afec58b
Bug 1792775 - Part 7: Update Gecko to Unicode 15. r=platform-i18n-reviewers,jfkthame
...
Update Gecko to Unicode 15 by running `genUnicodePropertyData.pl` and
`genSpecialCasingData.pl`.
Differential Revision: https://phabricator.services.mozilla.com/D160185
2022-11-23 17:56:16 +00:00
André Bargull
44945dd321
Bug 1792775 - Part 3: Update language tag mappings. r=platform-i18n-reviewers,dminor
...
Update language tags by running `./make_intl_data.py langtags`.
Differential Revision: https://phabricator.services.mozilla.com/D160181
2022-11-23 17:56:14 +00:00
André Bargull
450cd2c190
Bug 1792775 - Part 2: Update in-tree ICU to 72. r=platform-i18n-reviewers,dminor
...
Update to ICU 72 by running `./update-icu.sh https://github.com/unicode-org/icu.git maint/maint-72`.
Differential Revision: https://phabricator.services.mozilla.com/D160180
2022-11-23 17:56:04 +00:00
André Bargull
c527db03ac
Bug 1792775 - Part 1.1: Remove unused "personNames" table from ICU data file. r=platform-i18n-reviewers,gregtatum
...
We don't use the "personNames" data, so let's filter it out to reduce the ICU data file size.
Depends on D160179
Differential Revision: https://phabricator.services.mozilla.com/D162706
2022-11-23 17:56:04 +00:00
André Bargull
7a825e75ec
Bug 1792775 - Part 1: Update or remove ICU patches. r=platform-i18n-reviewers,dminor
...
Remove the patch for bug 1766220 because the local patch was just a backport
from the ICU development branch.
And update the local patches for Sorbian and WASI integration to apply cleanly
on ICU 72.
Differential Revision: https://phabricator.services.mozilla.com/D160179
2022-11-23 17:56:03 +00:00
Noemi Erli
57fbfda9e8
Backed out 16 changesets (bug 1792775) for causing build bustage in TestDateIntervalFormat.cpp CLOSED TREE
...
Backed out changeset 240681aef215 (bug 1792775)
Backed out changeset e15aea6bb46b (bug 1792775)
Backed out changeset ee9cd4c8d5cd (bug 1792775)
Backed out changeset 0be61a39756f (bug 1792775)
Backed out changeset 7db4fb376f48 (bug 1792775)
Backed out changeset 7009b35a05a0 (bug 1792775)
Backed out changeset 5abc2704004e (bug 1792775)
Backed out changeset 6d76fe50cf35 (bug 1792775)
Backed out changeset d6300cbbf628 (bug 1792775)
Backed out changeset 8f5e0e60d195 (bug 1792775)
Backed out changeset 0b9cf0354dc0 (bug 1792775)
Backed out changeset 7136c85641b7 (bug 1792775)
Backed out changeset 486778427d64 (bug 1792775)
Backed out changeset 7acee89c2699 (bug 1792775)
Backed out changeset 654c5f659fed (bug 1792775)
Backed out changeset a60b1bc33f91 (bug 1792775)
2022-11-23 17:18:45 +02:00
Marco Castelluccio
04f9d27771
Bug 1790816 - Reformat intl/ with isort. r=linter-reviewers,Standard8 DONTBUILD
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D162645
2022-11-23 12:59:26 +00:00
André Bargull
0fedffe9f5
Bug 1792775 - Part 11.1: Update expected test results in non-SpiderMonkey files. r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D162707
2022-11-23 10:42:45 +00:00
André Bargull
4a0ac37d47
Bug 1792775 - Part 8: Remove no longer needed ICU draft API guards. r=platform-i18n-reviewers,jfkthame
...
`UDAT_STANDALONE_NARROW_QUARTERS` has been promoted from draft to stable.
Differential Revision: https://phabricator.services.mozilla.com/D160186
2022-11-23 10:42:43 +00:00
André Bargull
8fb15ffe9d
Bug 1792775 - Part 7: Update Gecko to Unicode 15. r=platform-i18n-reviewers,jfkthame
...
Update Gecko to Unicode 15 by running `genUnicodePropertyData.pl` and
`genSpecialCasingData.pl`.
Differential Revision: https://phabricator.services.mozilla.com/D160185
2022-11-23 10:42:43 +00:00
André Bargull
645f61adee
Bug 1792775 - Part 3: Update language tag mappings. r=platform-i18n-reviewers,dminor
...
Update language tags by running `./make_intl_data.py langtags`.
Differential Revision: https://phabricator.services.mozilla.com/D160181
2022-11-23 10:42:41 +00:00
André Bargull
902df0f4d2
Bug 1792775 - Part 2: Update in-tree ICU to 72. r=platform-i18n-reviewers,dminor
...
Update to ICU 72 by running `./update-icu.sh https://github.com/unicode-org/icu.git maint/maint-72`.
Differential Revision: https://phabricator.services.mozilla.com/D160180
2022-11-23 10:42:32 +00:00
André Bargull
644f1b673d
Bug 1792775 - Part 1.1: Remove unused "personNames" table from ICU data file. r=platform-i18n-reviewers,gregtatum
...
We don't use the "personNames" data, so let's filter it out to reduce the ICU data file size.
Depends on D160179
Differential Revision: https://phabricator.services.mozilla.com/D162706
2022-11-23 10:42:31 +00:00
André Bargull
271e5e44f0
Bug 1792775 - Part 1: Update or remove ICU patches. r=platform-i18n-reviewers,dminor
...
Remove the patch for bug 1766220 because the local patch was just a backport
from the ICU development branch.
And update the local patches for Sorbian and WASI integration to apply cleanly
on ICU 72.
Differential Revision: https://phabricator.services.mozilla.com/D160179
2022-11-23 10:42:31 +00:00
Noemi Erli
d26dc9e9e0
Backed out 13 changesets (bug 1792775) for causing bustages
...
Backed out changeset f2c8e2200194 (bug 1792775)
Backed out changeset 3392ce042fb6 (bug 1792775)
Backed out changeset f5461baa7c5a (bug 1792775)
Backed out changeset d810c2b2d0bd (bug 1792775)
Backed out changeset af6164024ade (bug 1792775)
Backed out changeset 8c97026ef2b5 (bug 1792775)
Backed out changeset d396bec29ac2 (bug 1792775)
Backed out changeset a9aaa2387313 (bug 1792775)
Backed out changeset a4461db138b7 (bug 1792775)
Backed out changeset a7b39a5105a9 (bug 1792775)
Backed out changeset 5e746d85926a (bug 1792775)
Backed out changeset 3ea531c10813 (bug 1792775)
Backed out changeset 78811cdadd63 (bug 1792775)
2022-11-23 11:48:28 +02:00
Noemi Erli
001626e217
Backed out 3 changesets (bug 1792775) for causing build bustages in dateTimeField.js CLOSED TREE
...
Backed out changeset afc4c848f6cd (bug 1792775)
Backed out changeset 3ad9903f28d8 (bug 1792775)
Backed out changeset 838947448110 (bug 1792775)
2022-11-23 11:19:20 +02:00
André Bargull
995289f140
Bug 1792775 - Part 11.1: Update expected test results in non-SpiderMonkey files. r=platform-i18n-reviewers,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D162707
2022-11-23 08:43:23 +00:00
André Bargull
ff7bda35a3
Bug 1792775 - Part 8: Remove no longer needed ICU draft API guards. r=platform-i18n-reviewers,jfkthame
...
`UDAT_STANDALONE_NARROW_QUARTERS` has been promoted from draft to stable.
Differential Revision: https://phabricator.services.mozilla.com/D160186
2022-11-23 08:43:21 +00:00
André Bargull
52649f0d2a
Bug 1792775 - Part 7: Update Gecko to Unicode 15. r=platform-i18n-reviewers,jfkthame
...
Update Gecko to Unicode 15 by running `genUnicodePropertyData.pl` and
`genSpecialCasingData.pl`.
Differential Revision: https://phabricator.services.mozilla.com/D160185
2022-11-23 08:43:20 +00:00
André Bargull
70aaaa7f06
Bug 1792775 - Part 3: Update language tag mappings. r=platform-i18n-reviewers,dminor
...
Update language tags by running `./make_intl_data.py langtags`.
Differential Revision: https://phabricator.services.mozilla.com/D160181
2022-11-23 08:43:19 +00:00
André Bargull
409ed6f810
Bug 1792775 - Part 2: Update in-tree ICU to 72. r=platform-i18n-reviewers,dminor
...
Update to ICU 72 by running `./update-icu.sh https://github.com/unicode-org/icu.git maint/maint-72`.
Differential Revision: https://phabricator.services.mozilla.com/D160180
2022-11-23 08:38:46 +00:00
André Bargull
aa4f2ac584
Bug 1792775 - Part 1.1: Remove unused "personNames" table from ICU data file. r=platform-i18n-reviewers,gregtatum
...
We don't use the "personNames" data, so let's filter it out to reduce the ICU data file size.
Depends on D160179
Differential Revision: https://phabricator.services.mozilla.com/D162706
2022-11-23 08:38:45 +00:00
André Bargull
8c5fcbaa08
Bug 1792775 - Part 1: Update or remove ICU patches. r=platform-i18n-reviewers,dminor
...
Remove the patch for bug 1766220 because the local patch was just a backport
from the ICU development branch.
And update the local patches for Sorbian and WASI integration to apply cleanly
on ICU 72.
Differential Revision: https://phabricator.services.mozilla.com/D160179
2022-11-23 08:38:45 +00:00
Butkovits Atila
6ded0f39e9
Backed out 2 changesets (bug 1685180) for causing Xpcshell failures at test_l10nCache.js. CLOSED TREE
...
Backed out changeset c05d7c567c19 (bug 1685180)
Backed out changeset be4603eff17c (bug 1685180)
2022-11-21 19:51:30 +02:00
Greg Tatum
be1aa4d51d
Bug 1685180 - Debug assert Fluent strings where replaced variables are not provided; r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D161996
2022-11-21 16:14:06 +00:00
Sylvestre Ledru
97f4c646c8
Bug 1801196 - remove unused crates r=xpcom-reviewers,nika,gregtatum
...
Differential Revision: https://phabricator.services.mozilla.com/D162334
2022-11-18 16:31:05 +00:00
Greg Tatum
24751e2521
Bug 1755216 - Vendor in fluent-fallback@0.7.0; r=nordzilla
...
Depends on D161733
Differential Revision: https://phabricator.services.mozilla.com/D161734
2022-11-17 16:00:17 +00:00
Csoregi Natalia
9550c6467f
Bug 1800902 - Fix trailing whitespace. r=fix CLOSED TREE
2022-11-17 15:28:47 +02:00
Francesco Lodolo (:flod)
3c01cd430a
Bug 1800902 - Remove comm-central from cross-channel generation, r=eemeli DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D162201
2022-11-17 12:11:40 +00:00
André Bargull
7d0125b8c7
Bug 1799859: Add support for "microsecond" and "nanosecond" units. r=dminor
...
Steps performed:
- Add "microsecond" and "nanosecond" to "intl/icu/data_filter.json".
- Run "icu_sources_data.py" to update the ICU data file.
- Run "update-tzdata.sh" to reapply the tzdata 2022f changes.
- Add "microsecond" and "nanosecond" to "SanctionedSimpleUnitIdentifiers.yaml".
- Run "make_intl_data.py units" to regenerate additional SpiderMonkey files.
Spec PR: https://github.com/tc39/ecma402/pull/708
Differential Revision: https://phabricator.services.mozilla.com/D161676
2022-11-09 16:45:43 +00:00
Dan Minor
d6d0fb6210
Bug 1799250 - Don't use extractOrCopyRawBuffer in Locale.cpp; r=anba
...
Differential Revision: https://phabricator.services.mozilla.com/D161471
2022-11-08 17:41:49 +00:00
André Bargull
83b9a93f65
Bug 1798623: Update time zone data to tzdata2022f. r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D161007
2022-11-04 06:57:16 +00:00
Valentin Gosu
f4e5d22860
Bug 1793521 - Make sure URLs with invalid IDNA labels parse the same round-trip r=necko-reviewers,kershaw
...
This was regressed by bug 1788115, which allowed us to parse ASCII labels
again to enforce they're valid. However, the existing code only checked for
invalid punycode (that fails decoding), not ACE labels that are invalid.
If we don't check for this condition uidna_labelToUnicode will add a U+FFFD
character to the end of the label, making us encode it again, changing the URL.
When that happens, the principal's origin may change between serializations,
which is not OK.
Depends on D159373
Differential Revision: https://phabricator.services.mozilla.com/D160785
2022-11-01 09:50:18 +00:00
Daniel Holbert
16170f25a6
Bug 1797840: Replace stray tab characters with spaces in IDL files throughout the tree. r=mccr8,necko-reviewers,credential-management-reviewers,smaug,sgalich,valentin
...
DONTBUILD because this is just whitespace cleanup.
I found the files to fix up here using this command:
grep -r ' ' * 2>/dev/null | grep -v "other-licenses" | grep "idl:"
I replaced the tab characters with however many spaces seemed consistent with
the indentation in the surrounding code (and did some minor space-indentation
cleanup in contextual lines to preserve alignment, in a few cases).
Differential Revision: https://phabricator.services.mozilla.com/D160577
2022-10-28 18:08:17 +00:00
Henri Sivonen
1737aa6569
Bug 1630920 - Remove the gb2312han and big5han collations. r=anba
...
Makes the ICU data 191 KB smaller.
Differential Revision: https://phabricator.services.mozilla.com/D160337
2022-10-28 08:44:04 +00:00
Henri Sivonen
0b6dc7aed6
Bug 1793749 - Build ICU with the implicithan collation root. r=anba
...
Makes ICU data 353 KB smaller.
Differential Revision: https://phabricator.services.mozilla.com/D160345
2022-10-28 08:43:58 +00:00
André Bargull
b9446c85e2
Bug 1797248: Update time zone data to tzdata2022e. r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D160173
2022-10-27 11:32:17 +00:00
Stanca Serban
09251682b1
Backed out changeset 5bb3611c95d7 (bug 1797248) for causing time zones failures. CLOSED TREE
2022-10-27 13:00:39 +03:00
André Bargull
2b52b24839
Bug 1797248: Update time zone data to tzdata2022e. r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D160173
2022-10-27 09:11:48 +00:00
Mark Banner
9613c19f16
Bug 1795880 - Add an ESLint rule to enforce using static imports where possible. r=arai,geckoview-reviewers,m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D160131
2022-10-26 09:37:46 +00:00
Greg Tatum
0f321c2172
Bug 1773733 - Remove some commented out code in l10n-registry; r=nordzilla
...
Depends on D159715
Differential Revision: https://phabricator.services.mozilla.com/D159716
2022-10-19 21:17:33 +00:00
Greg Tatum
4299b58786
Bug 1773733 - Add a README.md for l10nregistry-rs; r=nordzilla
...
Depends on D159714
Differential Revision: https://phabricator.services.mozilla.com/D159715
2022-10-19 21:17:32 +00:00
Greg Tatum
caa67f36e3
Bug 1773733 - Add a fuzzing test for the l10nregistry; r=nordzilla
...
Depends on D159446
Differential Revision: https://phabricator.services.mozilla.com/D159714
2022-10-19 21:17:32 +00:00
Greg Tatum
f0ed9daad0
Bug 1773733 - Remove locking and add a MetaSources struct; r=nordzilla
...
I believe the crashes are due to the metasources list being mutated
while the async iterators are running. This changes should fix this
issue if it is in fact the root cause. The scope of this patch is a bit
larger since it changes the implementation to use a proper MetaSources
struct.
This struct centralizes access and mutation to the MetaSources,
providing an ergonomic API that should be fairly idiomatic and similar
to other Rust APIs.
The Mutex is not needed as this code is not multi-threaded. The RefCell
should provide proper access controls for handling the mutation of the
MetaSources.
The MetaSources struct also favors a Vec<Vec<Rc<T>>> rather than
Vec<Vec<T>> so that it can be copied very cheaply for the async
iterators.
Differential Revision: https://phabricator.services.mozilla.com/D159446
2022-10-19 21:17:32 +00:00
Greg Tatum
e055b8e94a
Bug 1773733 - Add a bit more documentation to various pieces of the L10nRegistry; r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D159445
2022-10-19 21:17:31 +00:00
Greg Tatum
1a8e733b51
Bug 1773733 - Rename L10nRegistry methods to be consistent and idiomatic; r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D159444
2022-10-19 21:17:31 +00:00
Greg Tatum
79cc2c219c
Bug 1773733 - Re-work and document the L10nRegistry bundle algorithm; r=nordzilla
...
This is probably the riskiest patch in the group, as it's touching the
core async iterator algorithm. The previous implementation relied on
pure match branches for handling things, but it made it awkward to share
some of the logic with a macro. I kept on running into issues with
refactoring tools not being able to work on the macro.
The changes here makes the code a bit more imperative, but I added
documentation of the current state that thing are in, so that it's
clearer where we were in the process of the algorithm.
This is a pure refactor and should not have any behavior changes.
Differential Revision: https://phabricator.services.mozilla.com/D159443
2022-10-19 21:17:30 +00:00
Greg Tatum
6c32be54a6
Bug 1773733 - Remove the bundle_adapter from the L10nRegistryLocked; r=nordzilla
...
This is a bit of chore work, as the upcoming MetaSources struct will not
need access to this member, and it's simpler without it.
Differential Revision: https://phabricator.services.mozilla.com/D159442
2022-10-19 21:17:30 +00:00
Greg Tatum
8dc7797215
Bug 1773733 - Fill in reasons for unreachable panics; r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D159441
2022-10-19 21:17:29 +00:00
Greg Tatum
6b697478cc
Bug 1773733 - Rename generate_sources_for_file to get_sources_for_resource; r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D159440
2022-10-19 21:17:29 +00:00
Greg Tatum
22a6e7c007
Bug 1773733 - Mark test-only methods as cfg(test); r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D159439
2022-10-19 21:17:29 +00:00
Greg Tatum
75cddf17e6
Bug 1773733 - Rename get_source to file_source_by_name; r=nordzilla
...
Depends on D159437
Differential Revision: https://phabricator.services.mozilla.com/D159438
2022-10-19 21:17:28 +00:00
Greg Tatum
f5418b7733
Bug 1773733 - Rename set_adapt_bundle to set_bundle_adapter; r=nordzilla
...
Differential Revision: https://phabricator.services.mozilla.com/D159437
2022-10-19 21:17:28 +00:00
Mark Banner
2ffde1e92f
Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
...
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.
Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Andrew McCreight
566e2d6cec
Bug 1792920, part 1 - Remove the unused return values for various Rust AddRef and Release methods. r=necko-reviewers,platform-i18n-reviewers,gregtatum,valentin
...
Rust's definition of nsrefcnt is incorrect, so I'm eliminating uses of it
where possible. Nobody actually uses these return values, so remove them.
Differential Revision: https://phabricator.services.mozilla.com/D159320
2022-10-17 16:09:20 +00:00
Sean Burke
be3eb81a13
Bug 1790071 - work around ICU-22132. r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D157023
2022-10-06 18:50:51 +00:00
Andrew McCreight
2da84b8ac4
Bug 1792574, part 3 - Don't include nsMemory where it isn't needed. r=xpcom-reviewers,necko-reviewers,valentin,nika
...
There are only 3 places where nsMemory.h is still needed (image/RasterImage.cpp,
gfx/thebes/gfxFT2FontList.cpp, and nsMemory.cpp). Remove the rest.
Differential Revision: https://phabricator.services.mozilla.com/D158213
2022-09-28 15:17:46 +00:00
Andrew McCreight
e626a91a81
Bug 1792354, part 2 - Remove nsErrorService and nsIErrorService. r=xpcom-reviewers,necko-reviewers,nika,valentin
...
Nika pointed out that there are only two places that register
something, and only one place that uses it, so this entire module
can be turned into a couple of lines of a switch statement.
Differential Revision: https://phabricator.services.mozilla.com/D158132
2022-09-27 21:27:17 +00:00
Mark Banner
a9ba6e830d
Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 21:47:50 +00:00
Marian-Vasile Laza
130adc5d9a
Backed out changeset 0679274d6ed5 (bug 1792398) for causing bc failures on browser_sendQuery.js. CLOSED TREE
2022-09-26 22:53:00 +03:00
Mark Banner
3e99025d45
Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 18:51:57 +00:00
Narcis Beleuzu
6c2d0d8cea
Backed out changeset 849faf753208 (bug 1792398) for bc failures on browser_sendQuery.js . CLOSED TREE
2022-09-26 20:44:40 +03:00
Mark Banner
05dcda5a7f
Bug 1792398 - Enable ESLint rule 'strict' on mjs files as the directive is not necessary for modules. r=arai,pip-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D158115
2022-09-26 16:51:10 +00:00
Nika Layzell
0316dc51b9
Bug 1790614 - Part 2: Use {ASSERT,ENSURE}_NS_{SUCCEEEDED,FAILED} in gtests, r=ahal,necko-reviewers
...
These macros will produce better outputs when they fail than these existing
patterns using `ENSURE_TRUE(NS_SUCCEEDED(...))` or similar, so this is a bulk
rewrite of existing tests to use them.
It should also help with discoverability when people base their tests off of
other existing tests.
Differential Revision: https://phabricator.services.mozilla.com/D157214
2022-09-15 14:51:50 +00:00
Nika Layzell
3d9a6d0374
Bug 1789902 - Part 2: Use XPCOM static components instead of Services in Rust, r=xpcom-reviewers,necko-reviewers,barret,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D156891
2022-09-13 13:47:13 +00:00
Mike Kaply
0ce6d5df0f
Bug 1297520 - For Snap, only install language for system locale. r=nalexander,OlivierTilloy
...
Differential Revision: https://phabricator.services.mozilla.com/D151052
2022-09-12 18:41:56 +00:00
justchen1369
4743055749
Bug 1789765 - Fix broken links to 'Fluent for Firefox Developers' page. r=firefox-source-docs-reviewers,marco DONTBUILD
...
Differential Revision: https://phabricator.services.mozilla.com/D156761
2022-09-08 19:03:25 +00:00
André Bargull
eff8ea5f7f
Bug 1752253: Change era skeleton to "GGG" to produce the expected era field length. r=platform-i18n-reviewers,gregtatum
...
This is actually exploiting an ICU bug, but ensures we return the same results
as other browsers. When the ICU bug has been fixed, we can revert this back to
"G".
Differential Revision: https://phabricator.services.mozilla.com/D156413
2022-09-08 06:05:55 +00:00
Mike Hommey
0e59ca6e3c
Bug 1789524 - Use drop(Box::from_raw). r=platform-i18n-reviewers,dminor
...
As of rustc 1.64, Box::from_raw is #[must_use].
Differential Revision: https://phabricator.services.mozilla.com/D156617
2022-09-07 20:48:02 +00:00
Olli Pettay
93acdfad59
Bug 1777574, automate CC zone handling, r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
Masatoshi Kimura
e7b3d513d4
Bug 1787633 - Make nsTextToSubURI::UnEscapeNonAsciiURI static. r=m_kato
...
Differential Revision: https://phabricator.services.mozilla.com/D156007
2022-09-06 15:59:06 +00:00
Eemeli Aro
9e7ffeb5e0
Bug 1446164 - Migrate formautofill edit dialogs to Fluent. r=sgalich,fluent-reviewers,flod
...
Migrating the strings used by the edit dialogs also allows/requires for their migration elsewhere.
Some streamlining is applied to how autofillEditForms.js gets access to e.g. FormFillUtils methods, so that they are no longer routed via the XHTML files' script tags. The prior independence of this file from internal dependencies appears to have been in place to support its use as a part of the Payments API's UI, but that was dropped in bug 1721229.
The Fluent migration script included in this patch also covers changes from the immediately preceding patch.
The intl documentation change is a typo correction that was noticed while working on this patch.
Differential Revision: https://phabricator.services.mozilla.com/D155705
2022-09-01 20:35:37 +00:00
Norisz Fay
e1a0b90205
Backed out 2 changesets (bug 1786708, bug 1446164) for causing multiple failures CLOSED TREE
...
Backed out changeset 469e2500f00e (bug 1446164)
Backed out changeset 0d298c6f7475 (bug 1786708)
2022-09-01 15:34:56 +03:00
Eemeli Aro
5475c4b139
Bug 1446164 - Migrate formautofill edit dialogs to Fluent. r=sgalich,fluent-reviewers,flod
...
Migrating the strings used by the edit dialogs also allows/requires for their migration elsewhere.
Some streamlining is applied to how autofillEditForms.js gets access to e.g. FormFillUtils methods, so that they are no longer routed via the XHTML files' script tags. The prior independence of this file from internal dependencies appears to have been in place to support its use as a part of the Payments API's UI, but that was dropped in bug 1721229.
The Fluent migration script included in this patch also covers changes from the immediately preceding patch.
The intl documentation change is a typo correction that was noticed while working on this patch.
Depends on D155478
Differential Revision: https://phabricator.services.mozilla.com/D155705
2022-09-01 08:26:47 +00:00
Bobby Holley
f7234adda2
Bug 1787306 - Upgrade serial_test to 0.6 to leverage Embark's audit. r=supply-chain-reviewers,nika
...
This unfortunately pulls in rustversion but it was easy enough to audit.
Differential Revision: https://phabricator.services.mozilla.com/D155641
2022-08-26 04:06:55 +00:00
criss
055a8632de
Backed out 6 changesets (bug 1787306) for causing Toolchains bustages. CLOSED TREE
...
Backed out changeset bcee96aa7df1 (bug 1787306)
Backed out changeset b5be37b86b21 (bug 1787306)
Backed out changeset 7e518de15dbb (bug 1787306)
Backed out changeset 07d938340e27 (bug 1787306)
Backed out changeset 9b8971442df5 (bug 1787306)
Backed out changeset 4d719c2b2711 (bug 1787306)
2022-08-26 02:25:46 +03:00
Bobby Holley
34fe6c3121
Bug 1787306 - Upgrade serial_test to 0.6 to leverage Embark's audit. r=supply-chain-reviewers,nika
...
This unfortunately pulls in rustversion but it was easy enough to audit.
Differential Revision: https://phabricator.services.mozilla.com/D155641
2022-08-25 23:05:41 +00:00
samronning
f832ff9ad3
Bug 1786402 - Fix ESLint rule warnings for no-unused-vars in intl/uconv/tests/unit/test_bug340714.js r=hsivonen
...
Differential Revision: https://phabricator.services.mozilla.com/D155290
2022-08-25 08:28:17 +00:00
Ed Lee
96460bcff8
Bug 1784901 - Show Language Mismatch Screen with negotiated language on left secondary section and switch button r=pdahiya
...
As part of installing the lang pack, add the negotiated language as string args and convert to raw if it wants to use the lang pack.
Differential Revision: https://phabricator.services.mozilla.com/D155021
2022-08-19 22:07:10 +00:00
André Bargull
52aed99c43
Bug 1786025: Update time zone data to tzdata2022b. r=platform-i18n-reviewers,dminor
...
Differential Revision: https://phabricator.services.mozilla.com/D155068
2022-08-19 17:14:03 +00:00
Nika Layzell
4011409c5d
Bug 1783282
- Use a custom attribute instead of derive for implementing xpcom interfaces in rust, r=xpcom-reviewers,necko-reviewers,dragana,barret
...
Differential Revision: https://phabricator.services.mozilla.com/D153801
2022-08-18 13:57:35 +00:00
Eemeli Aro
d831257098
Bug 1771917 - Add FormatMessagesSync C++ Localization gtests. r=nordzilla,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D154379
2022-08-16 17:46:53 +00:00
Andi-Bogdan Postelnicu
5981839b9a
Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio
...
Updated with rustfmt 1.5.1-stable (4b91a6e
2022-08-08)
# ignore-this-changeset
Depends on D154661
Differential Revision: https://phabricator.services.mozilla.com/D154662
2022-08-16 07:08:28 +00:00
Mark Banner
53b35796e0
Bug 1784699 - Add more ESLint worker annotations to test files. r=arai
...
Differential Revision: https://phabricator.services.mozilla.com/D154601
2022-08-15 16:50:31 +00:00
André Bargull
8c3a6dad95
Bug 1784375: Call LocaleParser::TryParse() with a new, empty Locale. r=platform-i18n-reviewers,dminor
...
For this to work, we need to add a move-constructor to `Locale`, so that it's
possible to write `loc = {}`. (We need move instead of copy semantics, because
`Locale` has UniquePtr members.) All other `Locale` members except for
`LanguageTagSubtag` already support move semantics. Add copy-constructors to
`LanguageTagSubtag`, so defaulted move-constructor/assignment works for `Locale`.
`LanguageTagSubtag` gets copy- instead of move-constructors, because there isn't
a good reason to disallow copying when moving is allowed.
Also add extra assertions and comments to document the requirement that `TryParse`
expects a new, empty `Locale`.
Differential Revision: https://phabricator.services.mozilla.com/D154496
2022-08-15 15:37:20 +00:00
Nika Layzell
aef919f890
Bug 1170668 - Improve short read handling in nsConverterInputStream, r=hsivonen
...
This patch changes how nsConverterInputStream handles passing data
through to the underlying unicode converter in order to make it more
reliably handle propagating errors and deal with short reads from the
underlying input stream.
This was done by making the code continuously read within the Fill
method until at least one character has been decoded from the input
stream, so that we don't spuriously communicate an EOF to the caller due
to a short read not producing enough bytes for the decoder to produce a
UTF-16 character.
In addition, while making this change it became easier to signal to
the decoder about the final read from the input stream, meaning that
partial characters at the end of the stream will now generate a
replacement character, rather than being ignored.
Differential Revision: https://phabricator.services.mozilla.com/D152682
2022-08-11 17:37:20 +00:00