6049 Commits

Author SHA1 Message Date
Henri Sivonen
8c188f23b4 Bug 1967381 - Optimize Document::RecomputeLanguageFromCharset. a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D251598

Differential Revision: https://phabricator.services.mozilla.com/D264905
2025-09-23 14:51:55 +00:00
Jonathan Kew
753cdf7af0 Bug 1971053 - patch 2 - Prefer to use the specified font from CSS for potentially-emoji characters unless a specific presentation is explicitly requested. a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D253740

Differential Revision: https://phabricator.services.mozilla.com/D253939
2025-07-08 17:47:31 +00:00
Mike Hommey
c9818c67e7 Bug 1966547 - Remove unnecessary virtual specifiers. r=nika,necko-reviewers,media-playback-reviewers,permissions-reviewers,timhuang,kershaw,padenot
clang 21 now warns about them.

Differential Revision: https://phabricator.services.mozilla.com/D249517
2025-05-22 05:47:21 +00:00
Pier Angelo Vendrame
30e6f870be Bug 1900648 - Allow language spoofing in XSLT status messages. r=platform-i18n-reviewers,dom-core,farre,nordzilla
Differential Revision: https://phabricator.services.mozilla.com/D244597
2025-05-20 19:47:16 +00:00
Sylvestre Ledru
8ae54ea4f9 Bug 1519636 - Reformat recent changes to the Google coding style r=geckoview-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,nalexander,gstoll,tcampbell,janv,julienw
Updated with clang-format version 19.1.7 (taskcluster-DYvBxDZJRVqTi8E7pTSJAQ)

Differential Revision: https://phabricator.services.mozilla.com/D249880
2025-05-17 19:11:13 +00:00
serge-sans-paille
084ee73a8b Bug 1963326 - Fix and validate debug non-unified build r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D247091
2025-05-09 05:03:56 +00:00
serge-sans-paille
bf3516e81e Bug 1964489 - Avoid duplication in NS_DECLARE_STATIC_IID_ACCESSOR / NS_DEFINE_STATIC_IID_ACCESSOR r=nika,necko-reviewers,media-playback-reviewers,places-reviewers,win-reviewers,dom-storage-reviewers,xpcom-reviewers,gstoll,janv,emilio,padenot,valentin,asuth
In modern C++, static constexpr member variables are automatically
inline (aka weak) so the template trick is not needed. This also avoid
duplication and reduces the amount of parsed code. No impact on
generated binary (actually: smaller debuginfo, close to identical
binary).

Differential Revision: https://phabricator.services.mozilla.com/D247825
2025-05-08 08:05:51 +00:00
Paul Bone
446f71ce5b Bug 1964593 - Include MainThreadUtils.h in nsLanguageAtomService.cpp r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D247881
2025-05-07 03:20:16 +00:00
Tom Schuster
761f25981c Bug 1963545 - Replace nsContentUtils::SpoofLocaleEnglish with ShouldResistFingerprinting(RFPTarget::JSLocale). r=fkilic
Differential Revision: https://phabricator.services.mozilla.com/D247246
2025-05-02 14:25:01 +00:00
Chris H-C
df60e14848 Bug 1963373 - Migrate Legacy Telemetry Environment fields r=janerik
This combines the following bugs:
bug 1950415
bug 1950412
bug 1950411
bug 1950410
bug 1950409
bug 1950403
bug 1950400
bug 1950399
bug 1950398
bug 1950397
bug 1950394
bug 1962547

Differential Revision: https://phabricator.services.mozilla.com/D247118
2025-04-29 18:10:46 +00:00
Stanca Serban
f3bc89cb1f Backed out 12 changesets (bug 1950412, bug 1950397, bug 1950415, bug 1950403, bug 1950400, bug 1950394, bug 1950410, bug 1950411, bug 1950399, bug 1950398, bug 1950409, bug 1962547) for causing xpcshell failures in /test_TelemetryEnvironment_search.js. CLOSED TREE
Backed out changeset cb1aa7d564fb (bug 1962547)
Backed out changeset f64fbfe8352d (bug 1950394)
Backed out changeset 6cfb7486b195 (bug 1950397)
Backed out changeset d6b540f20c74 (bug 1950398)
Backed out changeset 04744de05547 (bug 1950399)
Backed out changeset 57c197088b73 (bug 1950400)
Backed out changeset 2498c9bd09ec (bug 1950403)
Backed out changeset a5d9f1517a54 (bug 1950409)
Backed out changeset 07e06d4cc644 (bug 1950410)
Backed out changeset 4a5ed4e35307 (bug 1950411)
Backed out changeset 7f94ad317243 (bug 1950412)
Backed out changeset 47b0c7e5e71b (bug 1950415)
2025-04-29 01:47:20 +03:00
Pier Angelo Vendrame
4d113b4450 Bug 1959147 - Part 2: Remove nsStringBundleService::FormatStatusMessage. r=xpcom-reviewers,emilio
XSLT was the last consumer of this method.
After its migration to Fluent, it is not needed anymore.

Also, remove properties files that were used only by
FormatStatusMessage.

Differential Revision: https://phabricator.services.mozilla.com/D245696
2025-04-28 15:24:45 +00:00
Chris H-C
93cf1e0b7c Bug 1962547 - Migrate Environment field system.cpu.extensions r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D246679
2025-04-28 14:32:40 +00:00
Chris H-C
f502b7b0a9 Bug 1950394 - Migrate Environment intl fields r=TravisLong
Differential Revision: https://phabricator.services.mozilla.com/D246678
2025-04-28 14:32:40 +00:00
Goloman Adrian
06a37705e3 Backed out 2 changesets (bug 1959147) for causing build bustages @txMozillaXSLTProcessor.cpp. CLOSED TREE
Backed out changeset a019651cc743 (bug 1959147)
Backed out changeset d57f3a859955 (bug 1959147)
2025-04-28 12:20:37 +03:00
Pier Angelo Vendrame
e526c50621 Bug 1959147 - Part 2: Remove nsStringBundleService::FormatStatusMessage. r=xpcom-reviewers,emilio
XSLT was the last consumer of this method.
After its migration to Fluent, it is not needed anymore.

Also, remove properties files that were used only by
FormatStatusMessage.

Differential Revision: https://phabricator.services.mozilla.com/D245696
2025-04-28 08:18:23 +00:00
André Bargull
f3dc372bc8 Bug 1954138 - Part 6: Add a patch for ICU-23069. r=dminor
Upstream bug report: https://unicode-org.atlassian.net/browse/ICU-23069

Differential Revision: https://phabricator.services.mozilla.com/D241648
2025-04-23 11:23:30 +00:00
André Bargull
a64efe0732 Bug 1954138 - Part 4: Apply overrides for calendars. r=dminor
Apply the calendar overrides from part 3.

Differential Revision: https://phabricator.services.mozilla.com/D241646
2025-04-23 11:23:30 +00:00
André Bargull
2c4c691853 Bug 1954138 - Part 3: Add ICU4X-based Chinese and Dangun calendars. r=dminor,sylvestre
Add ICU4X based calendars for Chinese and Dangun to ensure consistent behaviour
across `Intl.DateTimeFormat` and `Temporal`.

This requires using the ICU4C C++ API, so it's not possible to use when
`MOZ_SYSTEM_ICU` is defined. And ICU4X's calendar FFI needs to be available,
which is currently guarded by `JS_HAS_TEMPORAL_API`.

Differential Revision: https://phabricator.services.mozilla.com/D241645
2025-04-23 11:23:30 +00:00
André Bargull
c943966835 Bug 1954138 - Part 2: Set Gregorian change date when constructing formatters. r=dminor
Always reset the Gregorian change date, because all uses either require the
Gregorian change date to be set to `-8.64e15` or don't care about dates far
into the past.

The slow `DateIntervalFormat::TryFormatCalendar` is now only used when
`MOZ_SYSTEM_ICU` is defined.

And also resets the Gregorian change date for "buddhist", "japanese", and
"roc" to get consistent results when compared to the ICU4X-based Temporal
code.

Differential Revision: https://phabricator.services.mozilla.com/D241644
2025-04-23 11:23:29 +00:00
André Bargull
8e0c960614 Bug 1954138 - Part 1: Add DateIntervalFormat::adoptCalendar. r=dminor
Patch ICU to allow modifying DateIntervalFormat's calendar.

Used in parts 2 and 4.

Differential Revision: https://phabricator.services.mozilla.com/D241643
2025-04-23 11:23:29 +00:00
André Bargull
f712dfff7b Bug 1960049: Update to tzdata 2025b. r=spidermonkey-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D245282
2025-04-22 13:16:13 +00:00
pstanciu
fca2cf558b Backed out 9 changesets (bug 1954138) for causing crash @RaiseException
Backed out changeset 812169f4258e (bug 1954138)
Backed out changeset 77c43d75ef9f (bug 1954138)
Backed out changeset 9ca91f37f2a5 (bug 1954138)
Backed out changeset 53f9d4a8dfe1 (bug 1954138)
Backed out changeset a71d9190e4f3 (bug 1954138)
Backed out changeset cf966cb71ae7 (bug 1954138)
Backed out changeset 35ee60498333 (bug 1954138)
Backed out changeset b21bf0c9df17 (bug 1954138)
Backed out changeset b9b87d145273 (bug 1954138)
2025-04-22 16:33:59 +03:00
André Bargull
a93d318ef0 Bug 1954138 - Part 6: Add a patch for ICU-23069. r=dminor
Upstream bug report: https://unicode-org.atlassian.net/browse/ICU-23069

Differential Revision: https://phabricator.services.mozilla.com/D241648
2025-04-22 12:01:55 +00:00
André Bargull
e6647c4e26 Bug 1954138 - Part 4: Apply overrides for calendars. r=dminor
Apply the calendar overrides from part 3.

Differential Revision: https://phabricator.services.mozilla.com/D241646
2025-04-22 12:01:55 +00:00
André Bargull
3ffdb67997 Bug 1954138 - Part 3: Add ICU4X-based Chinese and Dangun calendars. r=dminor,sylvestre
Add ICU4X based calendars for Chinese and Dangun to ensure consistent behaviour
across `Intl.DateTimeFormat` and `Temporal`.

This requires using the ICU4C C++ API, so it's not possible to use when
`MOZ_SYSTEM_ICU` is defined. And ICU4X's calendar FFI needs to be available,
which is currently guarded by `JS_HAS_TEMPORAL_API`.

Differential Revision: https://phabricator.services.mozilla.com/D241645
2025-04-22 12:01:55 +00:00
André Bargull
472da3bb00 Bug 1954138 - Part 2: Set Gregorian change date when constructing formatters. r=dminor
Always reset the Gregorian change date, because all uses either require the
Gregorian change date to be set to `-8.64e15` or don't care about dates far
into the past.

The slow `DateIntervalFormat::TryFormatCalendar` is now only used when
`MOZ_SYSTEM_ICU` is defined.

And also resets the Gregorian change date for "buddhist", "japanese", and
"roc" to get consistent results when compared to the ICU4X-based Temporal
code.

Differential Revision: https://phabricator.services.mozilla.com/D241644
2025-04-22 12:01:54 +00:00
André Bargull
3e9d035acd Bug 1954138 - Part 1: Add DateIntervalFormat::adoptCalendar. r=dminor
Patch ICU to allow modifying DateIntervalFormat's calendar.

Used in parts 2 and 4.

Differential Revision: https://phabricator.services.mozilla.com/D241643
2025-04-22 12:01:54 +00:00
Joel Maher
98ece24bd5 Bug 1959821 - cleanup and standardize remaining xpcshell.toml files. r=aryx,sync-reviewers,markh
Differential Revision: https://phabricator.services.mozilla.com/D245147
2025-04-15 20:24:35 +00:00
André Bargull
8211068356 Bug 1960026 - Part 2: Remove no longer needed checks for MOZ_ICU4X. r=spidermonkey-reviewers,dminor
After part 1, `JS_HAS_INTL_API` implies `MOZ_ICU4X`, so we can remove some
ifdef-guards.

Differential Revision: https://phabricator.services.mozilla.com/D245275
2025-04-15 13:12:18 +00:00
Makoto Kato
fe654766ca Bug 1959853 - Remove NS_ERROR_MODULE_NETWORK support from FormatStatusMessage. r=platform-i18n-reviewers,nordzilla
After landing bug 1733498, `necko.properties` has no status error message.
Also, network module doesn't use `FormatStatusMessage` now.

We should remove NS_ERROR_MODULE_NETWORK support from `FormatStatusMessag`.

Differential Revision: https://phabricator.services.mozilla.com/D245178
2025-04-15 10:57:02 +00:00
Rob Wu
62248a8bcc Bug 1953004 - Run test-manifest-toml --fix on all toml files in the trees r=credential-management-reviewers,places-reviewers,desktop-theme-reviewers,Standard8,devtools-reviewers,hjones,jmaher,jdescottes,dimi,necko-reviewers,sidebar-reviewers,jsudiaman,kershaw
This diff was generated as follows:

List all toml files in the tree:

`find * -name '*.toml' > /tmp/toml`

Manually edited /tmp/toml to drop non-relevant entries (objdir).

Ran the toml linter for all files:

`cat /tmp/toml | xargs ./mach lint -l test-manifest-toml --fix`

Differential Revision: https://phabricator.services.mozilla.com/D240948
2025-04-14 08:30:13 +00:00
André Bargull
af057b4c4e Bug 1960025: Remove no longer needed cxxflags override. r=platform-i18n-reviewers,nordzilla
Updating to a more recent ICU4X seems to have fixed this issue, so we no longer
need to add this flag.

Differential Revision: https://phabricator.services.mozilla.com/D245273
2025-04-14 07:28:47 +00:00
André Bargull
f717d8d9cc Bug 1960024: Remove checks for JS_HAS_INTL_API and MOZ_ICU4X. r=platform-i18n-reviewers,nordzilla
`JS_HAS_INTL_API` and `MOZ_ICU4X` are always set unless building js-standalone
packages. And because "intl/lwbrk" isn't used for js-standalone packages, both
options (`JS_HAS_INTL_API` and `MOZ_ICU4X`) are guaranteed to be defined.

Differential Revision: https://phabricator.services.mozilla.com/D245272
2025-04-14 07:28:46 +00:00
Jonathan Kew
41983aec3b Bug 1960221 - Remove the aNeedsToCache parameter from nsLanguageAtomService::GetLanguageGroup, and simplify callers. r=emilio
We don't need this param; it should be safe to call the method from any thread
and just rely on its internal locking to protect the cache.

Differential Revision: https://phabricator.services.mozilla.com/D245357
2025-04-13 19:25:00 +00:00
Alex Hochheiden
9e91a1f021 Bug 1715287 - [lint] Enable remaining pyupgrade rules and lint tree r=linter-reviewers,webdriver-reviewers,translations-reviewers,whimboo,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D245320
2025-04-13 17:48:23 +00:00
Fatih Kilic
c4aa41ea0c Bug 1957553 - Reset intl.accept_languages when JSLocalePrompt target is active regardless of RFP pref (and also clean up some hardcoded en-US values). r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D244393
2025-04-11 21:40:04 +00:00
Jonathan Kew
65a82ad431 Bug 1952105 - Add a lock to guard the cache in nsLanguageAtomService. r=m_kato,emilio
Differential Revision: https://phabricator.services.mozilla.com/D245211
2025-04-11 17:21:19 +00:00
Joel Maher
34dc8fc793 Bug 1957450 - cleanup chrome.toml files to remove old conditions and standardize remaining conditions. r=aryx,devtools-reviewers,fxview-reviewers,profiler-reviewers,omc-reviewers,migration-reviewers,backup-reviewers,julienw,nchevobbe,mconley,pdahiya,nsharpley
Differential Revision: https://phabricator.services.mozilla.com/D243709
2025-04-01 21:16:45 +00:00
kernp25
4d18975ff5 Bug 1945924 - Replace SchemeIsFoo functions with the inlined SchemeIs() call. r=valentin,emilio,necko-reviewers,geckoview-reviewers,anti-tracking-reviewers,core-sessionstore-reviewers,ohall,farre
No behavior change intended.

Differential Revision: https://phabricator.services.mozilla.com/D236756
2025-03-31 14:25:54 +00:00
Jonathan Kew
99dd2badd0 Bug 1955658 - Update quote-marks data to CLDR 47. r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D242574
2025-03-26 13:49:10 +00:00
Francesco Lodolo (:flod)
03c36a071c Bug 1955576 - Update Fluent reviewers doc to deprecate run-time ID generation, r=bolsson DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D242524
2025-03-21 18:07:24 +00:00
André Bargull
2e75efac26 Bug 1954425 - Part 3: Update language tag mappings. r=platform-i18n-reviewers,jfkthame
Update language tag mappings by running `./make_intl_data.py langtags`.

CLDR download URL was changed and no longer includes the trailing ".0".

Differential Revision: https://phabricator.services.mozilla.com/D241785
2025-03-20 09:46:23 +00:00
André Bargull
40fab635a7 Bug 1954425 - Part 2: Update in-tree ICU to 77. r=platform-i18n-reviewers,nordzilla
Update ICU by running `./update-icu.sh https://github.com/unicode-org/icu.git maint/maint-77`.

Differential Revision: https://phabricator.services.mozilla.com/D241784
2025-03-20 09:46:17 +00:00
André Bargull
7be5a0750e Bug 1954425 - Part 1: Update ICU patch files. r=platform-i18n-reviewers,jfkthame
Update the double-conversion patch file now that "measunit_extra.cpp" also uses
`StringToDoubleConverter`.

Differential Revision: https://phabricator.services.mozilla.com/D241782
2025-03-20 09:46:17 +00:00
Jonathan Kew
c3fd842af3 Bug 1954189 - Unescape the path retrieved from nsIURI before passing it to the Rust hyphenator for loading. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D241685
2025-03-14 22:40:33 +00:00
Jonathan Kew
d241cc4e35 Bug 1954096 - Fix check for nsHyphenator that failed to load its resource. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D241654
2025-03-14 16:18:39 +00:00
Alex Franchuk
b866d4a7b2 Bug 1951925 - Fix base content memory usage regressions r=nika
This disarms a footgun in the FreezableMapping::Freeze API, which was
causing read-only mappings in the global stylesheet cache to fail. These
failures caused content processes to re-load the style sheets,
increasing memory usage.

Differential Revision: https://phabricator.services.mozilla.com/D240928
2025-03-12 13:44:00 +00:00
Goloman Adrian
3bf4bdf4df Backed out changeset dca810679260 (bug 1951925) for causing build bustages @TestSharedMemory.cpp. CLOSED TREE 2025-03-12 05:55:09 +02:00
Alex Franchuk
ec8529652d Bug 1951925 - Fix base content memory usage regressions r=nika
This disarms a footgun in the FreezableMapping::Freeze API, which was
causing read-only mappings in the global stylesheet cache to fail. These
failures caused content processes to re-load the style sheets,
increasing memory usage.

Differential Revision: https://phabricator.services.mozilla.com/D240928
2025-03-12 03:17:49 +00:00