Commit Graph

5789 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
4eb3dda25e Bug 1859427 - Cache number parsers and formatters per language. r=smaug
This makes number localization cheaper / halves the time in the
microbenchmark.

Change the content-language handling to use atoms. This exposes some
interesting inconsistencies but I tried not to change behavior there.

Differential Revision: https://phabricator.services.mozilla.com/D191174
2023-10-17 11:01:13 +00:00
Sylvestre Ledru
d0f6c7fc66 Bug 1856795 - Remove redundant member init r=emilio
Done with:
./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix .

https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html

Differential Revision: https://phabricator.services.mozilla.com/D190002
2023-10-15 15:29:02 +00:00
Makoto Kato
66ef209e21 Bug 1856428 - MacOS Sonoma doesn't return correct timezone. r=anba
Import from https://unicode-org.atlassian.net/browse/ICU-22541
(https://github.com/unicode-org/icu/pull/2669).

Differential Revision: https://phabricator.services.mozilla.com/D191013
2023-10-15 10:43:10 +00:00
Cristina Horotan
6a90f5eded Backed out 2 changesets (bug 1856795) for causing build bustage at BasicEvents.h CLOSED TREE
Backed out changeset 1d98b028923a (bug 1856795)
Backed out changeset eae2ac93e17c (bug 1856795)
2023-10-14 21:42:14 +03:00
Sylvestre Ledru
cc8a0ee742 Bug 1856795 - Remove redundant member init r=emilio
Done with:
./mach static-analysis check --checks="-*, readability-redundant-member-init" --fix .

https://clang.llvm.org/extra/clang-tidy/checks/readability/redundant-member-init.html

Differential Revision: https://phabricator.services.mozilla.com/D190002
2023-10-14 17:34:26 +00:00
Makoto Kato
64a876087b Bug 1858068 - Cache ICU4XGraphemeClusterSegmenter. r=TYLin
Since `CountGraphemeClusters` is called from PresShell::DoFlushLayout when
using counter style. To optimize this, I would like to cache
`ICU4XGraphemeClusterSegmenter`.

Differential Revision: https://phabricator.services.mozilla.com/D190750
2023-10-13 12:49:08 +00:00
Natalia Csoregi
ec862c541a Backed out changeset 2d9717f5ca10 (bug 1858068) for causing bustage on Segmenter.cpp. CLOSED TREE 2023-10-13 12:15:55 +03:00
Makoto Kato
1c18dce421 Bug 1858068 - Cache ICU4XGraphemeClusterSegmenter. r=TYLin
Since `CountGraphemeClusters` is called from PresShell::DoFlushLayout when
using counter style. To optimize this, I would like to cache
`ICU4XGraphemeClusterSegmenter`.

Differential Revision: https://phabricator.services.mozilla.com/D190750
2023-10-13 08:41:42 +00:00
Tom Marble
0cb91fe33e Bug 1855300 - convert .ini manifests to .toml: batch 11 remaining **/mochitest.ini r=jmaher,geckoview-reviewers,extension-reviewers,valentin,credential-management-reviewers,cookie-reviewers,sgalich,m_kato,robwu
Differential Revision: https://phabricator.services.mozilla.com/D190515
2023-10-13 02:32:24 +00:00
Makoto Kato
15690ec8ce Bug 1848282 - Part 2. FindWord adds an option whether segment is punctuation. r=TYLin
This fix adds stop at punctuation mode for FindWord for a11y.

Also, IS_ASCII is conflict with nsUnicharUtils.h's, so I rename it.

Differential Revision: https://phabricator.services.mozilla.com/D188785
2023-10-03 10:43:17 +00:00
Makoto Kato
9dde11abbe Bug 1848282 - Part 1. Move IsPunctuation to nsUnicharUtils. r=TYLin
Remove duplication code.

Differential Revision: https://phabricator.services.mozilla.com/D188784
2023-10-03 10:43:17 +00:00
Sylvestre Ledru
4c29c24344 Bug 1856530 - run file-whitespace on toml files r=linter-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D189896
2023-10-03 09:22:18 +00:00
Jan Varga
c458754592 Bug 1855134 - Move existing MOZ_TRY macros to a dedicated header file; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D189226
2023-09-28 20:46:07 +00:00
Natalia Csoregi
a03097876a Backed out 3 changesets (bug 1848282) for causing gv-junit failures. CLOSED TREE
Backed out changeset d1fc71cc3817 (bug 1848282)
Backed out changeset 3446c1367bfd (bug 1848282)
Backed out changeset c800ae9f7943 (bug 1848282)
2023-09-28 08:03:34 +03:00
Makoto Kato
c88a7388e1 Bug 1848282 - Part 2. FindWord adds an option whether segment is punctuation. r=TYLin
This fix adds stop at punctuation mode for FindWord for a11y.

Also, IS_ASCII is conflict with nsUnicharUtils.h's, so I rename it.

Differential Revision: https://phabricator.services.mozilla.com/D188785
2023-09-28 04:11:05 +00:00
Makoto Kato
750893b128 Bug 1848282 - Part 1. Move IsPunctuation to nsUnicharUtils. r=TYLin
Remove duplication code.

Differential Revision: https://phabricator.services.mozilla.com/D188784
2023-09-28 04:11:05 +00:00
Bryan Olsson
fd6a7d6aea Bug 1854018 - How to Test Migration Recipes documentation update, r=flod DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D188641
2023-09-22 06:22:30 +00:00
Chris Peterson
cc722739c5 Bug 1853612 - Specify argument type for diplomat::span alias template to fix C++20 compilation error. r=m_kato
When I try to compile mozilla-central as C++20, clang reports the following compilation error in code added in bug 1851105:

intl/lwbrk/WordBreaker.cpp:123:9: error: alias template 'span' requires template arguments; argument deduction only allowed for class templates
        diplomat::span((const uint16_t*)aText.BeginReading(), aText.Length()));
        ^
third_party/rust/icu_capi/cpp/include/diplomat_runtime.hpp:131:19: note: template is declared here
template<class T> using span = std::span<T>;
                  ^

Differential Revision: https://phabricator.services.mozilla.com/D188428
2023-09-20 00:07:24 +00:00
serge-sans-paille
ee24dfd589 Bug 1852210 - Remove duplicate double_conversion sources r=dminor
The original sources were compiled... three times.
We got rid of the chromium duplicate in Bug 1850328 and we remove the
last duplicate with this patch.

Differential Revision: https://phabricator.services.mozilla.com/D187753
2023-09-15 08:27:43 +00:00
Cosmin Sabou
77fe6109bb Backed out changeset 62742440d009 (bug 1852210) for causing SM bustages on number_decimalquantity.cpp. CLOSED TREE 2023-09-15 10:38:19 +03:00
serge-sans-paille
3030c5ccde Bug 1852210 - Remove duplicate double_conversion sources r=dminor
The original sources were compiled... three times.
We got rid of the chromium duplicate in Bug 1850328 and we remove the
last duplicate with this patch.

Differential Revision: https://phabricator.services.mozilla.com/D187753
2023-09-15 06:57:17 +00:00
Tom Marble
9e40a719f2 Bug 1850545 - convert .ini manifests to .toml: batch 3 chrome.ini (bis) r=jmaher,geckoview-reviewers,extension-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,places-reviewers,profiler-reviewers,m_kato,mak,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D187597
2023-09-13 18:28:32 +00:00
Mark Banner
07a6921e17 Bug 1851797 - Remove nsIScriptableUnicodeConverter convertToByteArray and convertToInputStream. r=jfkthame,perftest-reviewers,application-update-reviewers,AlexandruIonescu,bytesized,hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D187548
2023-09-13 08:38:19 +00:00
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