Commit Graph

5870 Commits

Author SHA1 Message Date
Dave Townsend
f35244e188 Bug 1864896: Autofix unused function arguments (general). r=nika,jfkthame,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D203007
2024-03-19 14:59:22 +00:00
Mark Banner
268dc80fa1 Bug 1885723 - Fix more jsm references in misc code. r=Gijs,necko-reviewers,dom-storage-reviewers,janv,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D204845
2024-03-19 08:59:11 +00:00
Mark Banner
3d5bb40f49 Bug 1884623 - Update more jsm references in production code and docs in misc code. r=mossop,necko-reviewers,profiler-reviewers,julienw,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D204185
2024-03-14 17:42:28 +00:00
Sandor Molnar
09d9822ba8 Backed out 3 changesets (bug 1884623) for causing multiple failures CLOSED TREE
Backed out changeset 3a264233ce8e (bug 1884623)
Backed out changeset acdf8a83a49c (bug 1884623)
Backed out changeset de64ce832b8a (bug 1884623)
2024-03-14 17:03:37 +02:00
Mark Banner
fcaf27c6e1 Bug 1884623 - Update more jsm references in production code and docs in misc code. r=mossop,necko-reviewers,profiler-reviewers,julienw,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D204185
2024-03-14 12:18:01 +00:00
Gregory Pappas
ea69b62538 Bug 1883217 - Remove unused defines in IDL files r=webdriver-reviewers,necko-reviewers,credential-management-reviewers,places-reviewers,dom-core,Standard8,valentin,mccr8,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D203347
2024-03-06 19:04:25 +00:00
Mike Hommey
700c39e80b Bug 1883570 - Build OSPreferences for iOS. r=platform-i18n-reviewers,dminor
We can use the same as the one for mac, as long as we use the headers
their SDKs have in common.

Differential Revision: https://phabricator.services.mozilla.com/D203562
2024-03-05 21:03:15 +00:00
Emilio Cobos Álvarez
d39e78a02e Bug 1883435 - Don't include GleanMetrics.h from Document.h. r=chutten,necko-reviewers,valentin
In bug 1883435 comment 2 chutten mentions that including
nsGlobalWindowInner.h from GleanMetrics.h causes a stylo build failure.

This is because nsGlobalWindowInner.h itself brings a bunch of DOM
bindings template soup that bindgen isn't great at dealing with.

That can be fixed in various ways. However, there is a simpler fix,
which is not including GleanMetrics at all.

It's trivial to do, and given it's a massive autogenerated file, and
Document.h is a very common header, it's worth doing this if only for
build times.

Fix a bunch of unused includes while at it.

Differential Revision: https://phabricator.services.mozilla.com/D203625
2024-03-05 17:54:14 +00:00
Jonathan Kew
b5eda7e86d Bug 1881487 - Update unicode-bidi to pick up newly-added smallvec support. r=platform-i18n-reviewers,supply-chain-reviewers,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D202415
2024-02-22 19:47:54 +00:00
Jonathan Kew
67a3110855 Bug 1881232 - Restrict use of the Rust unicode-bidi implementation to Nightly builds for now. r=emilio
There are a few testcases that were affected by the switch in bidi implementations
(see patches 5 and 6 in bug 1824671), so we need to update the metadata to reflect
the differing behavior between Nightly and Beta/Release builds. These changes will
be reverted when we allow unicode-bidi to ride the train to Release.

Differential Revision: https://phabricator.services.mozilla.com/D202305
2024-02-21 15:19:54 +00:00
André Bargull
f6b3782bbd Bug 1879488: Update time zone data to tzdata2024a. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D201196
2024-02-14 13:25:29 +00:00
Jonathan Kew
213ad19af0 Bug 1824671 - patch 10 - Switch unicode-bidi-ffi to use icu_properties as data source. r=platform-i18n-reviewers,dminor
Looking up the BidiClass property via icu_properties is more efficient than the
built-in version provided in unicode-bidi.

Differential Revision: https://phabricator.services.mozilla.com/D198449
2024-02-06 11:41:12 +00:00
Jonathan Kew
5941b4e7cd Bug 1824671 - patch 8 - Add icu_properties as a dependency to unicode-bidi-ffi. r=platform-i18n-reviewers,dminor
This will cause `./mach vendor rust` to pull it into the tree.

Note that actually running `./mach vendor rust` requires the file-size limit in vendor_rust.py
to be temporarily raised (from 100K to 300K is enough) because of large files in the icu_properties
crate. This does not contribute significant bloat to the binary, though, because only actually-used
data ends up in the build.

Differential Revision: https://phabricator.services.mozilla.com/D198446
2024-02-06 11:41:11 +00:00
Jonathan Kew
54fc0320be Bug 1824671 - patch 4 - Update Gtest to accept either ICU4C or unicode-bidi handling of the embedding controls (explicitly unspecified by UAX#9). r=platform-i18n-reviewers,dminor
unicode-bidi more closely follows the UAX#9 recommendations for processing embedding controls
if they're not actually removed from the text; but this is not an actual spec requirement,
so either behavior is acceptable.

Differential Revision: https://phabricator.services.mozilla.com/D197891
2024-02-06 11:41:09 +00:00
Jonathan Kew
fafbd7f128 Bug 1824671 - patch 3 - Convert intl Bidi component to be backed by the unicode-bidi crate. r=platform-i18n-reviewers,dminor
With this, the intl::Bidi component no longer relies on ICU4C's ubidi_* APIs.

Differential Revision: https://phabricator.services.mozilla.com/D197890
2024-02-06 11:41:09 +00:00
Jonathan Kew
7731a2b908 Bug 1824671 - patch 2 - Create a minimal unicode-bidi-ffi crate to expose APIs needed by the intl::Bidi component. r=platform-i18n-reviewers,dminor
Rather than Diplomat-generated, this is hand-written to provide just the functionality needed in intl::Bidi,
to minimize the amount of glue code and ensure a close match to Gecko requirements.

Differential Revision: https://phabricator.services.mozilla.com/D197889
2024-02-06 11:41:09 +00:00
Mike Hommey
da840cd693 Bug 1878778 - Mark ICU4XDataStruct as dead code as it's never read from Rust. r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D200734
2024-02-06 05:36:43 +00:00
Pier Angelo Vendrame
69ffaa7b95 Bug 1875313 - Use en-US as a fallback when spoof English is enabled in ICUUtils. r=timhuang,tjr
Differential Revision: https://phabricator.services.mozilla.com/D198967
2024-01-31 21:52:30 +00:00
Iulian Moraru
76cb3efe3b Backed out changeset c3355d01fddd (bug 1875313) for causing build bustages on CUUtils.cpp. CLOSED TREE 2024-01-31 19:26:54 +02:00
Pier Angelo Vendrame
60472034a1 Bug 1875313 - Use en-US as a fallback when spoof English is enabled in ICUUtils. r=timhuang,tjr
Differential Revision: https://phabricator.services.mozilla.com/D198967
2024-01-31 16:56:11 +00:00
Daniel Holbert
cc54045d4d Bug 1875430 part 4: Convert 'static UniquePtr' global vars to use StaticAutoPtr, in intl. r=platform-i18n-reviewers,jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D199170
2024-01-23 19:00:49 +00:00
Cristian Tuns
a0f83ca7c6 Backed out 11 changesets (bug 1824671) for causing spidermonkey bustages in Bidi.h CLOSED TREE
Backed out changeset f41ef5e3f7b9 (bug 1824671)
Backed out changeset f029db1566d8 (bug 1824671)
Backed out changeset 7fe14219e95e (bug 1824671)
Backed out changeset 71dbcba23335 (bug 1824671)
Backed out changeset 5c20e50fc26b (bug 1824671)
Backed out changeset e16c7ccc64e5 (bug 1824671)
Backed out changeset d8414db5bc0c (bug 1824671)
Backed out changeset 89622f53da27 (bug 1824671)
Backed out changeset 9a2fbd21feb5 (bug 1824671)
Backed out changeset b273d641a26a (bug 1824671)
Backed out changeset 17e79f579645 (bug 1824671)
2024-01-23 10:19:32 -05:00
Jonathan Kew
f32359193a Bug 1824671 - patch 10 - Switch unicode-bidi-ffi to use icu_properties as data source. r=platform-i18n-reviewers,dminor
Looking up the BidiClass property via icu_properties is more efficient than the
built-in version provided in unicode-bidi.

Differential Revision: https://phabricator.services.mozilla.com/D198449
2024-01-23 11:53:24 +00:00
Jonathan Kew
ca727d236b Bug 1824671 - patch 8 - Add icu_properties as a dependency to unicode-bidi-ffi. r=platform-i18n-reviewers,dminor
This will cause `./mach vendor rust` to pull it into the tree.

Note that actually running `./mach vendor rust` requires the file-size limit in vendor_rust.py
to be temporarily raised (from 100K to 300K is enough) because of large files in the icu_properties
crate. This does not contribute significant bloat to the binary, though, because only actually-used
data ends up in the build.

Differential Revision: https://phabricator.services.mozilla.com/D198446
2024-01-23 11:53:23 +00:00
Jonathan Kew
04367eb816 Bug 1824671 - patch 4 - Update Gtest to accept either ICU4C or unicode-bidi handling of the embedding controls (explicitly unspecified by UAX#9). r=platform-i18n-reviewers,dminor
unicode-bidi more closely follows the UAX#9 recommendations for processing embedding controls
if they're not actually removed from the text; but this is not an actual spec requirement,
so either behavior is acceptable.

Differential Revision: https://phabricator.services.mozilla.com/D197891
2024-01-23 11:53:21 +00:00
Jonathan Kew
54aadfc5e2 Bug 1824671 - patch 3 - Convert intl Bidi component to be backed by the unicode-bidi crate. r=platform-i18n-reviewers,dminor
With this, the intl::Bidi component no longer relies on ICU4C's ubidi_* APIs.

Differential Revision: https://phabricator.services.mozilla.com/D197890
2024-01-23 11:53:21 +00:00
Jonathan Kew
e0e2a426a2 Bug 1824671 - patch 2 - Create a minimal unicode-bidi-ffi crate to expose APIs needed by the intl::Bidi component. r=platform-i18n-reviewers,dminor
Rather than Diplomat-generated, this is hand-written to provide just the functionality needed in intl::Bidi,
to minimize the amount of glue code and ensure a close match to Gecko requirements.

Differential Revision: https://phabricator.services.mozilla.com/D197889
2024-01-23 11:53:20 +00:00
serge-sans-paille
5d8fc0d8a6 Bug 1875444 - Remove last mention of libhyphen vendoring r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D199074
2024-01-19 10:05:07 +00:00
Gijs Kruitbosch
dd128f510e Bug 1874321 - document how to run nightly with a custom language, r=cmkm,flod
Differential Revision: https://phabricator.services.mozilla.com/D198399
2024-01-15 18:20:51 +00:00
Tooru Fujisawa
2e7027b7a9 Bug 1874595 - Use LF in toml file consistently. r=jmaher,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D198505
2024-01-15 15:21:53 +00:00
Steve Fink
86e7e76297 Bug 1790873 - Send a full line at a time to printf_stderr in nsUniscribeBreaker.cpp r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D166852
2024-01-11 02:09:29 +00:00
Stanca Serban
94288d3f1e Backed out 5 changesets (bug 1794063, bug 1790873) for causing Linux spidermonkey builds bustages in Printer.h. CLOSED TREE
Backed out changeset c729aa80e73e (bug 1794063)
Backed out changeset 442a0de27b61 (bug 1790873)
Backed out changeset 6934f2978802 (bug 1790873)
Backed out changeset 296f6da7b6ed (bug 1790873)
Backed out changeset 01ddb562d770 (bug 1790873)
2024-01-10 01:18:55 +02:00
Steve Fink
acb8aa17fa Bug 1790873 - Send a full line at a time to printf_stderr in nsUniscribeBreaker.cpp r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D166852
2024-01-09 22:45:59 +00:00
tjamesmac
acbe1ec0e1 Bug 1868328 - Fix clippy warnings. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D196414
2024-01-09 10:03:42 +00:00
Paul Adenot
00049adfc8 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Depends on D196060

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-20 02:32:37 +00:00
Narcis Beleuzu
0f250fb8c2 Backed out 7 changesets (bug 1869332) for Android bustages. CLOSED TREE
Backed out changeset e1a7852ec85a (bug 1869332)
Backed out changeset 886e59d6495f (bug 1869332)
Backed out changeset 03ac3598f84f (bug 1869332)
Backed out changeset 5e775f2c2b9c (bug 1869332)
Backed out changeset 295a1e1f01d5 (bug 1869332)
Backed out changeset 2909ac6aeb41 (bug 1869332)
Backed out changeset dfab47873174 (bug 1869332)
2023-12-19 18:52:01 +02:00
Paul Adenot
35a2409f61 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-19 15:21:52 +00:00
Joel Maher
2a46c30602 Bug 1869871 - convert perftest.ini -> .toml. r=sparky,perftest-reviewers,necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D196334
2023-12-14 19:41:14 +00:00
Noemi Erli
862354d813 Backed out 7 changesets (bug 1869332) for causing libavcodec related bustages CLOSED TREE
Backed out changeset 1c0fd259312d (bug 1869332)
Backed out changeset d51eba30a225 (bug 1869332)
Backed out changeset 483d3f275da7 (bug 1869332)
Backed out changeset c401449274b4 (bug 1869332)
Backed out changeset c83313202040 (bug 1869332)
Backed out changeset 00ceb6e47715 (bug 1869332)
Backed out changeset 5acc2f4f12c2 (bug 1869332)
2023-12-14 12:02:45 +02:00
Paul Adenot
e4602171c8 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-14 09:12:34 +00:00
ogiorgis
111705f5fd Bug 1840493 - doc/rst: fix some languages declaration r=firefox-source-docs-reviewers,webdriver-reviewers,necko-reviewers,geckoview-reviewers,devtools-reviewers,profiler-reviewers,championshuttler,whimboo,nchevobbe,julienw,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D196268
2023-12-13 18:32:20 +00:00
Stanca Serban
d84ca52ee4 Backed out 6 changesets (bug 1869332) for causing build bustages. CLOSED TREE
Backed out changeset 4f8c19f9dfcf (bug 1869332)
Backed out changeset 661e520c2991 (bug 1869332)
Backed out changeset 74e2acabc439 (bug 1869332)
Backed out changeset 1c4b5311ac03 (bug 1869332)
Backed out changeset af22bc552759 (bug 1869332)
Backed out changeset f557e130d997 (bug 1869332)
2023-12-13 18:13:24 +02:00
Paul Adenot
090d5b5388 Bug 1869332 - Remove .orig files that crept in. r=chunmin
Drive-by, nothing to do with this bug.

Differential Revision: https://phabricator.services.mozilla.com/D196061
2023-12-13 13:46:41 +00:00
Makoto Kato
39dae322a4 Bug 1869223 - Add fast path to CountGraphemeClusters when text is empty. r=TYLin
When reloading https://en.wikipedia.org/wiki/Barack_Obama that is used by
browsertime benchmark, `CountGraphemeClusters` is called around 3000 times.
But half calls are that `aText` is empty.

So if we add fast path for empty text, we can avoid a lot of heap allocations
of `ICU4XGraphemeClusterBreakIteratorUtf16`.

Differential Revision: https://phabricator.services.mozilla.com/D196008
2023-12-12 00:59:27 +00:00
Mike Hommey
619672a8e4 Bug 1867459 - Replace CPU_ARCH with TARGET_CPU. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D195157
2023-12-08 10:43:59 +00:00
Logan Rosen
e61d06e995 Bug 1677775 - adjust ICU .mozbuild generation format to work with Black r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D193006
2023-12-08 04:26:45 +00:00
Eemeli Aro
ab63294dc3 Bug 1331508 - Add note to ICU docs about patching CLDR data. r=fluent-reviewers,platform-i18n-reviewers,dminor,flod
Differential Revision: https://phabricator.services.mozilla.com/D195394
2023-12-07 16:46:36 +00:00
Makoto Kato
9f41fa963a Bug 1865865 - Add fast-path when computing segment's length is 1. r=TYLin
When running wikipedia's page by browsertime benchmark, 0.5%-1% calls of
`LineBreaker::ComputeBreakPositions` is that aLength is 1. If this is 1,
we only set SOT break in ICU4X's line segmenter.

So we can add a fast-path for this situation. `ICU4XLineBreakIterator*`
always allocate rust heap, so we can reduce a few heap allocation costs.

Differential Revision: https://phabricator.services.mozilla.com/D195523
2023-12-07 14:52:46 +00:00
Makoto Kato
a35ac330ae Bug 1868324 - Add more explicit keyword for ICU4X C++ FFI. r=TYLin
Tier-2 job for static-analysis might be failed due to no explicit keyword.

Differential Revision: https://phabricator.services.mozilla.com/D195531
2023-12-06 09:38:28 +00:00
Ting-Yu Lin
7817dcc4fb Bug 1868454 - Check in icu_capi/Cargo.toml.orig. r=m_kato DONTBUILD
This file shows up after running `update-icu4x.sh`. It is part of the downloaded
`icu_capi` crate. We should check it in for completeness even if it is not used.

Differential Revision: https://phabricator.services.mozilla.com/D195591
2023-12-06 05:06:46 +00:00