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