Commit Graph

5763 Commits

Author SHA1 Message Date
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