Commit Graph

4604 Commits

Author SHA1 Message Date
Andreea Pavel
7c754d1621 Backed out changeset fbbb0327f0f1 (bug 1475903) for failing intl/l10n/test/test_mozdomlocalization.js 2018-08-02 06:14:05 +03:00
Zibi Braniecki
0ce3ff104d Bug 1475903 - Add mozIDOMLocalization API. r=mossop
In order to use DOMLocalization from C++ we need an XPIDL interface.
mozIDOMLocalization exposes the class and functionality allowing DocumentL10n to hook into it.

MozReview-Commit-ID: GPMhw61LPEg

--HG--
extra : rebase_source : 62d5909d9db8858c2ad1b4234d6f9b9be8da7efd
2018-06-22 13:14:23 -07:00
Zibi Braniecki
a0c2cfd168 Bug 1479606 - Sync BCP47 language tags between processes, not lang tags. r=jfkthame
Sync BCP47 language tags between processes, not lang tags.

Differential Revision: https://phabricator.services.mozilla.com/D2579

--HG--
extra : moz-landing-system : lando
2018-07-31 21:42:37 +00:00
Axel Hecht
85cca5e505 bug 1478343, update Fluent migration docs, r=stas
The changes affecting the docs include:
Rename of EXTERNAL_ARGUMENT to VARIABLE_REFERENCE
Addition of TERM_REFERENCE

Docs already talk about variable references, too.

MozReview-Commit-ID: KUwPSqJyBn0

--HG--
extra : rebase_source : d1b8b3aa42716ba9884422687c8ae8946805bb1f
2018-07-26 11:17:57 +02:00
Jonathan Kew
98cb122caa Bug 1426827 - Treat Fitzpatrick skin-tone modifiers as cluster extenders when building textruns. r=m_kato 2018-07-25 09:38:10 +01:00
Jonathan Kew
c5cd6a1621 Bug 1477010 - Treat plane-14 tag characters as cluster extenders when building textruns, so that emoji flag sequences behave as single units. r=m_kato 2018-07-25 09:38:07 +01:00
Kris Maglione
43de9e89bf Bug 1473135: Stop using ReentrantMonitor for string bundle mutexes. r=gandalf
MozReview-Commit-ID: HUfb47Eei7P

--HG--
extra : rebase_source : a6edf2f1163b799e9c62eb510d5e52e7a9d014b8
2018-07-20 17:20:00 -07:00
Margareta Eliza Balazs
9de29c1f5a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-18 12:40:51 +03:00
Xidorn Quan
158c6391b2 Bug 1476485 - Remove pragma pack from nsUnicodeScriptCodes.h. r=jfkthame
MozReview-Commit-ID: LW64U7ccjVa

--HG--
extra : rebase_source : 0c95807a0a86be417d331c9f9b0a61ff2b04db23
2018-07-18 14:05:05 +10:00
Sylvestre Ledru
91907444b3 Bug 1468273 - Fix flake8/pep8 in intl/ r=froydnj
MozReview-Commit-ID: IDqjd7nBRS

--HG--
extra : rebase_source : 1679528701e0cab59fb827224f19eced9c8fda00
2018-06-10 14:25:47 +02:00
Zibi Braniecki
9abd8411b1 Bug 1384236 - Cache l10n resources differently in L10nRegistry. r=Pike
Switch to cache FTLResources per FileSource. This allows us to minimize
the memory impact of dynamic additions/removals of l10n resources to
a context on fly.

MozReview-Commit-ID: B9fxbkaU3oX

--HG--
extra : rebase_source : bc268352965c721b5692f2062a063f7fba091136
2018-06-22 12:03:24 -07:00
Paolo Amadini
78634a8074 Bug 1472716 - Part 1 - Whitelist the "value" attribute for XUL localization. r=gandalf
MozReview-Commit-ID: Gv9da9rqOrL

--HG--
extra : source : 8863ca47ea65aae4b136ea9cf80fb8eab33c0e90
2018-07-10 14:57:18 +01:00
Zibi Braniecki
6ab04fc7a2 Bug 1474786 - Update Fluent to master. r=stas
MozReview-Commit-ID: 5PMKF46TPVM

--HG--
extra : rebase_source : cb1efb34498c6d067cde90e5f999267ce91b08e9
2018-07-10 17:49:02 -07:00
André Bargull
7f4e8b545f Bug 1466471 - Part 6: Import patch to fix case conversion bug. r=Waldo 2018-07-05 07:14:07 -07:00
André Bargull
19d00748a5 Bug 1466471 - Part 5: Regenerate Unicode files after ICU update. r=jfkthame 2018-06-22 05:02:03 -07:00
André Bargull
5f0b43c2d6 Bug 1466471 - Part 2: Update in-tree ICU to release 62.1. rs=Waldo 2018-06-22 04:40:26 -07:00
André Bargull
e41342954e Bug 1466471 - Part 1: Update patches for ICU 62. r=Waldo 2018-06-22 04:39:39 -07:00
Kris Maglione
55220193dd Bug 1470771: Follow-up: Fix null deref in Windows GPU process. r=me 2018-06-30 16:37:51 -07:00
Kris Maglione
a2b2bbf6b6 Bug 1470771: Part 2 - Update StringBundle memory reporters to account for sharing. r=erahm
MozReview-Commit-ID: 5xRsvLj4Klu

--HG--
extra : rebase_source : 08cdb56e6260ea03c3b5040013289482b5edd44c
extra : absorb_source : 67a548b588e576913181feca037a28493539de35
2018-06-24 15:47:10 -07:00
Kris Maglione
bfb5c20c11 Bug 1470771: Part 1 - Don't evict shared bundles from the bundle cache. r=erahm
MozReview-Commit-ID: 6BLN4hOH5fW

--HG--
extra : rebase_source : 445ebef3d6a50c44de6929b32cdbe2bc68daef35
extra : absorb_source : e3152069712927a73a54ca9d8240413f51ddec21
2018-06-24 14:32:19 -07:00
Kris Maglione
f66e192f39 Bug 1470716: Remove unused ExtensibleStringBundle support. r=gandalf
MozReview-Commit-ID: HpNjXK0IURv

--HG--
extra : rebase_source : 988d650e15f4082ad0b778163b661ec105d71096
extra : absorb_source : 55ede0cae193e3dfb6c1ce9e1caffe51a9005aa6
2018-06-23 23:12:31 -07:00
Kris Maglione
54bf3bc3c5 Bug 1470608: Remove StringBundleOverride service. r=gandalf
MozReview-Commit-ID: GYEvzmstW54

--HG--
extra : rebase_source : 9ae0a0cef7f4ae0e373f6ace7d26767616881409
extra : absorb_source : 98dae21cc3acda425cc885f7ae473a54a5ac71b4
2018-06-23 22:56:19 -07:00
Kris Maglione
e6da28f1ce Bug 1470365: Part 3 - Use shared memory for StringBundles loaded in the content process. r=erahm,smaug
MozReview-Commit-ID: LunnQyndnBf

--HG--
extra : rebase_source : f67e08fc83e8c2e280d886b2d69150c09fb48200
extra : absorb_source : 3b9b226aaca168e3b6537f3031ff22275bd27133
2018-06-29 22:53:12 -07:00
Kris Maglione
d89b3482b9 Bug 1470365: Part 2 - Add StringBundle implementation using shared memory maps. r=erahm,gandalf
This adds a basic StringBundle implementation using shared memory maps, but
doesn't yet hook them up to anything. They behave the same as ordinary string
bundles, but have the additional restriction that they are permanent for the
length of the session, and cannot be removed from the cache.

MozReview-Commit-ID: 4juGhhpCWPn

--HG--
extra : rebase_source : 3a9e30eeb64482056ad5c5b1fc480cf1e8333691
extra : absorb_source : e38998a347b641d4fd4243a6a1b7365543fee3c4
2018-06-28 14:45:21 -07:00
Chris Peterson
2afd829d0f Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj
This patch is an automatic replacement of s/NS_NOTREACHED/MOZ_ASSERT_UNREACHABLE/. Reindenting long lines and whitespace fixups follow in patch 6b.

MozReview-Commit-ID: 5UQVHElSpCr

--HG--
extra : rebase_source : 4c1b2fc32b269342f07639266b64941e2270e9c4
extra : source : 907543f6eae716f23a6de52b1ffb1c82908d158a
2018-06-17 22:43:11 -07:00
Francesco Lodolo (:flod)
b8cbb8c7e1 Bug 1467183 - Add documentation for Fluent migrations, r=gandalf,Pike,stas
MozReview-Commit-ID: 8eaH4SaXfAu

--HG--
extra : rebase_source : a8af1c7613fd4dc50b6bedde45c8a2d61403ee8c
2018-06-07 18:19:00 +02:00
Andi-Bogdan Postelnicu
61063ef470 Bug 1453795 - I18N - Initialize member fields in classes/ structures. r=jfkthame
--HG--
extra : amend_source : 8acc147182e6a4dff7fdb6a324e12628f5211c07
2018-06-14 22:32:49 +03:00
Makoto Kato
128531b424 Bug 1434805 - Use LocaleList on Android N+. r=jchen
Android N+ has new Locale mode that selects multiple locale for font selection.
We should support it to be better locale system selection.

MozReview-Commit-ID: HndldWO5yOd

--HG--
extra : rebase_source : b07608b7c51ae530ccb80f79e24aee6eface4712
2018-06-08 17:35:43 +09:00
Henri Sivonen
e4805fd183 Bug 1466807 - Update encoding_rs to 0.8.0. r=emk
MozReview-Commit-ID: 30vmruy1kiL

--HG--
extra : rebase_source : 0e3e489fde0485919cd03529ba5d6d030863bfc1
2018-06-05 13:50:20 +03:00
Kris Maglione
7b7264f453 Bug 1464548: Part 3 - Update callers to use defineLazyGlobalGetters. r=mccr8
MozReview-Commit-ID: 9APGewiDDYB

--HG--
extra : rebase_source : 2931dd0eec0e4206414b698a9700fc20d922eb3a
2018-05-25 17:02:29 -07:00
Francesco Lodolo (:flod)
fe5f3fd914 Bug 1467377 - Fix typos in Intl and L10n documentation r=gandalf
MozReview-Commit-ID: 9zP6j7COEiJ

--HG--
extra : rebase_source : 35b44964d38f53f62522d0709b18d7dfa1ca8a9a
2018-06-07 08:20:49 +02:00
Zibi Braniecki
a3bf95f8ee Bug 1450781 - Enable pseudolocalization in Fluent. r=mossop
MozReview-Commit-ID: Cs8OubRRur4

--HG--
extra : rebase_source : 10f2ff4983d0785278a030d134a41582e4714f71
2018-06-01 12:37:13 -07:00
Mark Banner
009a516ef4 Bug 1444329 - Remove nsIScriptableUnicodeConverter::convertFromByteArray. r=hsivonen
MozReview-Commit-ID: IPgCK6slIqj

--HG--
extra : rebase_source : f5074678ccaf184e17660699a6e1173a6d951b6f
2018-06-04 11:25:54 +01:00
Emilio Cobos Álvarez
fffb25b74f Bug 1465585: Switch from mozilla::Move to std::move. r=froydnj
This was done automatically replacing:

  s/mozilla::Move/std::move/
  s/ Move(/ std::move(/
  s/(Move(/(std::move(/

Removing the 'using mozilla::Move;' lines.

And then with a few manual fixups, see the bug for the split series..

MozReview-Commit-ID: Jxze3adipUh
2018-06-01 10:45:27 +02:00
Zibi Braniecki
2c11915c39 Bug 1438687 - Add Developer documentation for l10n. r=flod,Pike
MozReview-Commit-ID: J3jZuyyRKXM

--HG--
extra : rebase_source : 09023a869d19616e914b1c5494bd57808489003f
2018-04-26 14:19:22 -07:00
Zibi Braniecki
1f437852f1 Bug 1438687 - Add Developer documentation for Intl and mozIntl. r=jfkthame,Pike
MozReview-Commit-ID: HbKJoM66iD6

--HG--
extra : rebase_source : 41b92532ba1fee024b6435ee84f8f6df32bd48b3
2018-04-26 14:19:01 -07:00
Zibi Braniecki
41175a3f18 Bug 1438687 - Add Developer documentation for LocaleService. r=jfkthame,Pike
MozReview-Commit-ID: Jk2BhKBsW8S

--HG--
extra : rebase_source : 13919722aa508cac0f4c9638dc6ff9a6bf4607ce
2018-04-26 14:18:34 -07:00
Zibi Braniecki
81ade958bc Bug 1438687 - Document mozilla::intl::Locale. r=jfkthame,Pike
MozReview-Commit-ID: BzGKIfzR63

--HG--
extra : rebase_source : ecb85fd784636ad19ce9a62368c46747cebe0f10
2018-04-26 14:18:08 -07:00
Kristen Wright
5e4b4031fc Bug 1462138 - Part 1: Add a memory reporter for nsStringBundleService. r=erahm
Added memory reporter in nsStringBundleService. Added SizeOfIncluding/ExcludingThis functions in IStringBundle, StringBundle, ExtensibleStringBundle, PersistentProperties, StringBundleTextOverride.

--HG--
extra : rebase_source : 0756ed2181f02ffe42dd94db282ddf3dfa59047c
2018-05-18 13:16:31 -07:00
Zibi Braniecki
1c5fcde883 Bug 1453765 - Switch Fluent from warning to throwing errors when in debug/testing mode. r=Gijs
MozReview-Commit-ID: 1y7FTCPWRxb

--HG--
extra : rebase_source : fb4d20e383efd64bbdfce5ca1d78aca40716b57a
2018-05-22 20:49:29 -07:00
Csoregi Natalia
acd92af57e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-23 01:02:30 +03:00
Zibi Braniecki
1627230c81 Bug 1462958 - Avoid infinite recursion if resourceIds is empty. r=mossop
`generateContextsForLocale` didn't have a condition for when `resolvedLength`
equals `resourcesLength` which triggeres an infinite recursion when `resourceIds` is
empty.

MozReview-Commit-ID: Csy1ROTfbE2

--HG--
extra : rebase_source : 587477279ed89bf17cd3243ae291222ecd9d34b4
2018-05-19 20:14:00 -07:00
Kris Maglione
6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
Mike Hommey
42e9fd70c8 Bug 1462859 - Add --disable-layoutex when running ICU configure. r=froydnj
In some recent ICU update, --enable-layoutex changed from defaulting to
the "same-as-layout" to "yes", so --disable-layout doesn't imply
--disable-layoutex anymore, but we removed the layoutex files.

--HG--
extra : rebase_source : 4343c37d840aec94adcb8ccb7571969d6c0979e0
2018-05-19 11:23:18 +09:00
Zibi Braniecki
93ac8e7357 Bug 1461048 - Convert Fluent API calls to FluentDOM 0.3.0. r=mossop
MozReview-Commit-ID: K3eA8blcP2x

--HG--
extra : rebase_source : 8aca3e850d9c8f87e13aa5d1dcad588b9a272a94
2018-05-14 12:37:41 -07:00
Zibi Braniecki
1fc028c7d8 Bug 1461048 - Update FluentDOM to 0.3.0. r=mossop
MozReview-Commit-ID: FKHICfiqXVr

--HG--
extra : rebase_source : 93258d2425509bbdc2a4a9e77b98ed87da526af0
2018-05-14 12:14:27 -07:00
André Bargull
a72259bbca Bug 1459285: Update tzdata in ICU data files to 2018e. r=Waldo 2018-05-09 01:12:01 -07:00
Chris Peterson
71422dcaa9 Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent

MozReview-Commit-ID: KuUsnVe2h8L

--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Kris Maglione
a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Zibi Braniecki
09e02253d3 Bug 1456565 - Fetch fallback locale eagerly in Fluent. r=stas
MozReview-Commit-ID: A9wBGxzdD2m

--HG--
extra : rebase_source : 5b8cd54faff389e9a94412b3ec928f1c36bdd4a2
2018-04-24 10:31:59 -07:00
Noemi Erli
f296f0fe18 Backed out changeset 7f536b6a56e9 (bug 1456565) for Linting failures on a CLOSED TREE 2018-04-27 02:12:56 +03:00
Zibi Braniecki
15975eb37c Bug 1456565 - Fetch fallback locale eagerly in Fluent. r=stas
MozReview-Commit-ID: A9wBGxzdD2m

--HG--
extra : rebase_source : 1304e1e28a67b290c24f637ab68377e1d5c75646
2018-04-24 10:31:59 -07:00
Francesco Lodolo (:flod)
34c68c67c3 Bug 1454573 - Update languageNames.properties with missing locales: crh, mai, meh, mix r=m_kato
Also add missing locales to langGroups.properties (an, ast, az, uz) and language.properties (son)

MozReview-Commit-ID: 2dAOly4wxHm

--HG--
extra : rebase_source : 60adf737549f8bcd30bde205c82aa5d783c867d2
2018-04-19 11:50:19 +02:00
Zibi Braniecki
0b6e1bc746 Bug 1455048 - Revert the workaround added to Fluent for microtasks bug. r=mossop
MozReview-Commit-ID: AFpNRPfJpm7

--HG--
extra : rebase_source : 8b6b8a0733651c96e46a0e24a3cd11dddd2d0aff
2018-04-18 11:05:19 -07:00
André Bargull
1617c8c2c1 Bug 1447442 - Part 16: Replace MOZ_BEGIN_EXTERN_C in C++ header jspubtd.h and remove unused includes and declarations. r=jorendorff
--HG--
extra : rebase_source : 8103f7b6a3a4fc813c9a7b2355223357d46e7d35
2018-04-13 02:26:02 -07:00
Zibi Braniecki
4d776835e7 Bug 1450656 - Canonicalize ja-JP-mac to ja-JP-macos and use BCP47 version in Fluent. r=jfkthame
MozReview-Commit-ID: 2UbD2T8yyGm

--HG--
extra : rebase_source : 1e9f9c4ab8c97240edb3eb8e2e9d611fff907d7f
2018-04-10 14:19:05 -07:00
Zibi Braniecki
b4b2c33b2d Bug 1453480 - Update fluent to 0.6.4 and fluent-dom to 0.2.0. r=stas
MozReview-Commit-ID: La8uSw0sq4p

--HG--
extra : source : 658fedb903d0f037289ffb80026ddea376400caa
2018-04-11 13:06:35 -07:00
Coroiu Cristina
7e1be34a07 Backed out 4 changesets (bug 1453480) for failing browser-chrome at browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_site_data.js on a CLOSED TREE
Backed out changeset 623b37fe0fe8 (bug 1453480)
Backed out changeset a3c36fa7ac0c (bug 1453480)
Backed out changeset 46a634d6853c (bug 1453480)
Backed out changeset 658fedb903d0 (bug 1453480)
2018-04-13 19:49:14 +03:00
Zibi Braniecki
a8f62de0ae Bug 1453480 - Update fluent to 0.6.4 and fluent-dom to 0.2.0. r=stas
MozReview-Commit-ID: La8uSw0sq4p

--HG--
extra : rebase_source : 95181fb06ec75c36ebc2c234fdac68956b9e049e
2018-04-11 13:06:35 -07:00
Sebastian Hengst
0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Coroiu Cristina
5061cec60a Backed out 3 changesets (bug 1453480, bug 1453878) for c2 failures at intl/l10n/test/dom/test_domloc_overlay.htm and browser-chrome failures at browser/components/preferences/in-content/tests/browser_fluent.js on a CLOSED TREE
Backed out changeset 8dd86546cc66 (bug 1453878)
Backed out changeset 6b5e7c13eb8c (bug 1453480)
Backed out changeset 385de3e4dca0 (bug 1453480)
2018-04-13 08:51:13 +03:00
Zibi Braniecki
cc0beb7960 Bug 1453878 - Follow-up to fluent-dom to 0.2.0 landing. r=gandalf
MozReview-Commit-ID: D5jgJWzrDlX

--HG--
extra : rebase_source : 316dd7c060ddc0c023f601f8bb8ab91640c19c4e
2018-04-12 22:20:05 -07:00
Zibi Braniecki
e3ad17f498 Bug 1453480 - Update fluent to 0.6.4 and fluent-dom to 0.2.0. r=stas
MozReview-Commit-ID: La8uSw0sq4p

--HG--
extra : rebase_source : 27e3611a5bb7abc11e8663186c6e4b1812a7f34b
2018-04-11 13:06:35 -07:00
Tristan Bourvon
a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Bobby Holley
2b985ab718 Bug 1451421 - Add a ToLowerCaseASCII utility method for nsAtom. r=hisvonen 2018-04-06 15:30:15 -07:00
Jonathan Kew
f919345739 Bug 1450724 - Fix potential build failure due to #defines from hnjalloc.h affecting other files included by hnjstdio.cpp. r=felipe 2018-04-03 10:01:03 +01:00
André Bargull
885f7cd752 Bug 1449574: Update tzdata in ICU data files to 2018d. r=Waldo
--HG--
extra : rebase_source : 31cf8dfab7a49519a56b5eefc4d0c711c0ddf645
2018-03-29 10:02:57 -07:00
André Bargull
4669025773 Bug 1445465 - Part 2: Update in-tree ICU to release 61.1. rs=Waldo
--HG--
extra : rebase_source : 581636d37a7aa1ed6044dd0729aeeaab97d3e57a
2018-03-27 07:37:54 -07:00
André Bargull
6847ff4290 Bug 1445465 - Part 1: Remove ICU patch no longer needed with ICU 61. r=Waldo
--HG--
extra : rebase_source : bea346207d1471f8397533b19b3f8658192830fa
2018-03-27 07:10:44 -07:00
Gurzau Raul
d117255a14 Merge inbound to mozilla-central. a=merge 2018-03-29 00:55:16 +03:00
Henri Sivonen
66f351684b Bug 1448786 - Avoid UTF8ToUnicodeBuffer in OSPreferences_win.cpp. r=gandalf
MozReview-Commit-ID: 7a11ogGXo8E

--HG--
extra : rebase_source : b07613849ee7739066314b2b66b01078c8a7beec
2018-03-26 15:42:27 +03:00
Zibi Braniecki
afbdd10615 Bug 1448891 - Lowercase private use tags in MozLocale in accordance with BCP47. r=jfkthame
MozReview-Commit-ID: 2mpCbJlevu4

--HG--
extra : rebase_source : d0835bbe17a87f511ede57c114cb4015a7c7bc1d
2018-03-27 07:11:27 +02:00
Zibi Braniecki
c1d66520bf Bug 1447189 - Support BCP47 private use subtags in MozLocale. r=jfkthame
MozReview-Commit-ID: LJSb3vTENR5

--HG--
extra : rebase_source : ec7023f3722b1d925a5b3684852331e5a8e7796f
2018-03-22 15:19:15 -07:00
Henri Sivonen
21af10d5f4 Bug 1445692 - Remove UTF8InputStream. r=froydnj
MozReview-Commit-ID: 1az5nkKTkru

--HG--
extra : rebase_source : 6a21b4dad71ea351a51c741977b36dfb562c608b
2018-03-14 20:53:18 +02:00
Jonathan Kew
9ff23d9c3a Bug 1448771 - Merge fix from upstream. r=ryanvm 2018-03-26 20:35:48 +01:00
Jonathan Kew
0637c3d96d Bug 1448771 - Update hnjstdio to handle additional functions from stdio.h that libhyphen wants to use. r=glandium 2018-03-28 10:17:51 +01:00
Zibi Braniecki
bb82a08086 Bug 1345957 - Tighten LocaleService::NegotiateLanguages input handling. r=jfkthame
MozReview-Commit-ID: 9ZxHI0RpYpi

--HG--
extra : rebase_source : 1db7f4b41f62acfd8e654fa2bdf9bfabb7350f0a
2018-03-06 18:54:57 -08:00
Gurzau Raul
3057041352 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-16 19:58:27 +02:00
Steve Fink
973f0383bc Bug 1446254 - Update various files for move to non262/, r=Waldo
--HG--
extra : rebase_source : c723ffc20d4acc02cadd1c27b747ab3e08f60617
2018-03-15 21:42:33 -07:00
Sebastian Hengst
d247fb5f4e Bug 1445763 - Update moz.build meta data with "Firefox Build System". r=froydnj
MozReview-Commit-ID: 3FrWJ6441pe

--HG--
extra : rebase_source : c8f1dc45041132252e28869ada6a386270267431
2018-03-14 21:44:46 +01:00
Zibi Braniecki
a715714c3c Bug 1438613 - Remove explicit observer unregistering from Fluent. r=mossop
MozReview-Commit-ID: 3SavwzU9ZQD

--HG--
extra : rebase_source : 97a5a8d661d93ac3a35635bab527990b47d3b35c
2018-02-15 11:06:52 -08:00
Zibi Braniecki
314d9393b8 Bug 1443697 - Fix nits in Fluent for Firefox Developers. r=flod
MozReview-Commit-ID: 4QSBa01XXp3

--HG--
extra : rebase_source : 1d68adcced17cb5904f8a87aadc2f4a7309f17c1
2018-03-06 17:48:17 -08:00
Zibi Braniecki
a17ecedb71 Bug 1438608 - Improve error reporting of Fluent missing strings. r=stas
MozReview-Commit-ID: 5HOsUGtDi3V

--HG--
extra : rebase_source : 14bae133efb1338813145c9c8a543302a1b0c0db
2018-03-06 01:25:23 -08:00
Zibi Braniecki
e0dc62fb37 Bug 1363862 - Use Node.localize for fragment translation in Fluent DOM. r=stas
MozReview-Commit-ID: 1zAbSMapi86

--HG--
extra : rebase_source : 5b0ca1113bf99f6308db4655ebaec0ab6f2eb416
2018-03-01 16:49:37 -08:00
Zibi Braniecki
db6356be2b Bug 1438655 - Add Introduction to Fluent for Firefox Developers. r=flod
MozReview-Commit-ID: 33v3OTFYRHi

--HG--
extra : rebase_source : 27c549ae74fd9f132a8066e864d570b9e3218e91
2018-02-27 23:52:26 -08:00
Matt Brubeck
c01458e74e Bug 1381576 - Remove reference to obsolete encoding_rs/parallel-utf8 feature. r=ted
MozReview-Commit-ID: D5YdCGTBuL

--HG--
extra : source : 1ea18b70b170502da444405f233f925c58e1266d
2018-03-01 13:02:02 -08:00
shindli
0ba01aed1b Backed out 3 changesets (bug 1381576) for Bugzilla linting failure on a CLOSED TREE
Backed out changeset 3bc1743ad418 (bug 1381576)
Backed out changeset bbae7807c164 (bug 1381576)
Backed out changeset 1ea18b70b170 (bug 1381576)
2018-03-02 21:17:20 +02:00
Matt Brubeck
29e544108f Bug 1381576 - Remove reference to obsolete encoding_rs/parallel-utf8 feature. r=ted
MozReview-Commit-ID: D5YdCGTBuL

--HG--
extra : rebase_source : dea337046b7fb8491bb9c4d59b4d0c2e43cf6516
extra : histedit_source : d8abdea214803e323f0ac87d6916491a67513fc2
2018-03-01 13:02:02 -08:00
Florian Quèze
c546946f86 Bug 1433175 - remove by hands some variations of Cc,Ci,Cu definitions, r=Standard8. 2018-02-28 18:51:34 +01:00
Florian Quèze
c714053d73 Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
Brian Grinstead
97119973ca Bug 1440094 - Remove imports to Console.jsm that only access the 'console' object;r=mossop
Importing this object is unnecessary after the updates to the WebIDL console from Bug 1425574
and the follow-ups blocking Bug 1430810. There are still callers that access Console.jsm
to create custom ConsoleAPI objects, but those will be handled separately.

MozReview-Commit-ID: 9ojFxtkpPId

--HG--
extra : rebase_source : 971bf99f709b8d2afe300f3693665724f747aa5e
2018-02-27 11:29:59 -08:00
Jonathan Kew
37d0b4ea9b Bug 1440943 - Make GetScriptTagForCode safely return UNKNOWN tag if called with a script code that is out of range for the system ICU version. r=m_kato 2018-02-27 10:34:25 +00:00
Florian Quèze
682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Dorel Luca
6ad641c5c4 Merge mozilla-inboud to mozilla-central. a=merge 2018-02-22 11:59:54 +02:00
Jason Orendorff
a48654929c Bug 1439665 - Part 1: #include some headers directly in files that use them. r=sfink.
"Include what you use."

--HG--
extra : rebase_source : 2239a380029e0efbc9dd3042459222a67c38d70f
extra : amend_source : 4453c32cc469caa592049167205666997f1a1e7b
extra : histedit_source : a533edd4a4d3d0642b08989e93674661d27baa6a%2C37d27eeef9580381ccc0de8507f60166dabf1730
2018-02-20 11:28:12 -06:00
Zibi Braniecki
6078ba1b11 Bug 1439018 - Temporarily disable bidi isolation in Fluent due to Microsoft not supporting FSI/PDI. r=stas
MozReview-Commit-ID: FTJyG4UhQA

--HG--
extra : rebase_source : f1e77036d03778c602a3265df6f759a748cbf825
2018-02-19 22:24:40 -10:00
Zibi Braniecki
e3306c96dc Bug 1440188 - Fix eslint error from adding intl/l10n to eslint. r=gandalf
MozReview-Commit-ID: 8um44N5dZUv

--HG--
extra : rebase_source : 5d1a01c53a585bca9e396543bf29e3ee3b8565d9
2018-02-21 18:36:30 -08:00
Zibi Braniecki
c797a57c90 Bug 1428769 - Add intl/l10n to be covered by eslint. r=Pike
MozReview-Commit-ID: 6Mu1A8xkxn4

--HG--
extra : rebase_source : e62867d32b0062a6aa076572b85fb9cec7afb81a
2018-02-20 14:02:54 -10:00
Zibi Braniecki
5849ff1145 Bug 1431260 - Migrate LocaleService::AvailableLocales from ChromeRegistry to multilocale.txt. r=jfkthame
MozReview-Commit-ID: 6S4VaAvDako

--HG--
extra : rebase_source : ea6ae09971a7cbf617081836079cb875ffe4cb18
2018-02-13 23:41:39 -08:00
Zibi Braniecki
06102292c3 Bug 1437427 - Workaround promise/microtask bug with a callback in Fluent runtime. r=Pike
MozReview-Commit-ID: 9uJpEHHBv8w

--HG--
extra : rebase_source : f09277ad5f2ea4a61d1f7ba9b908b35af9dd3360
2018-02-13 12:26:31 -08:00
Zibi Braniecki
168adb6f0b Bug 1438055 - Switch Fluent Localization class to use weak observers. r=mossop
MozReview-Commit-ID: 4R8OyziLRUo

--HG--
extra : rebase_source : 8a26c97c30e46af0a5f77060066046cd91ccb64c
2018-02-13 16:25:41 -08:00
Zibi Braniecki
b9f1a4ecba Bug 1426063 - Add PLATFORM built-in to Fluent in Gecko. r=Pike
In order to allow localizations to produce different string depending on the
platform, we need to add a Gecko-specific built-in function to the MessageContext.

I'm explicitly listing the variables which we pass, rather than just passing the value
in order to ensure we don't start returning values we didn't plan for in case
the AppConstants.platform gets updated.

MozReview-Commit-ID: 1KZ6bf6zIY2

--HG--
extra : rebase_source : ce75c2c32bfb29b10b6ddbcaf6a71e2bf4cd4315
2017-12-20 14:25:10 -08:00
Zibi Braniecki
5fe1b2b553 Bug 1436790 - Update Fluent in Gecko to 0.6.2. r=Pike
MozReview-Commit-ID: BC2oTIGLips

--HG--
extra : rebase_source : b7d5122123ff49a2332d3848e235c0c6ae1c0921
2018-02-08 10:59:29 -08:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Coroiu Cristina
6276356615 Merge mozilla-central to autoland on a CLOSED TREE 2018-02-02 19:43:07 +02:00
André Bargull
9129fc5348 Bug 1430761: Update tzdata in ICU data files to 2018c. r=Waldo 2018-02-01 05:36:03 -08:00
Florian Quèze
2b1c8dccb6 Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
Zibi Braniecki
8cebbf96af Bug 1435002 - Move Fluent's l10n.js to MozBeforeInitialXULLayout. r=smaug
MozReview-Commit-ID: GC9Yq9TxXyC

--HG--
extra : rebase_source : 10c9b5f1e6c62c12725f2814aabf28dbb175f0bf
2018-01-15 18:00:43 -08:00
Cosmin Sabou
7092b51729 Merge mozilla-central to autoland. a=merge on CLOSED TREE 2018-02-01 01:19:48 +02:00
Jonathan Kew
1640aa8219 Bug 1434169 - Update expectations in test_localeService_negotiateLanguages.js to NOT expect case/underscore normalization. r=gandalf 2018-01-31 20:28:51 +00:00
Jonathan Kew
12930d0cf2 Bug 1434169 - LocaleService::NegotiateLanguages should return locales in exactly the form they were provided in the availableLocales list, not case-normalized. r=gandalf 2018-01-31 20:28:51 +00:00
Zibi Braniecki
64594123bb Bug 1426054 - Update Fluent in Gecko to 0.6. r=Pike
This upstream uses fluent.js revision ae1b55a.

MozReview-Commit-ID: 1IynCPWWN14

--HG--
extra : rebase_source : d76bd81668e447e7fe8b62cf0834f040c32f6982
2018-01-26 14:01:34 -08:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian
af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione
c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
André Bargull
d59edfc08b Bug 1422415 - Part 2: Call _sprintf_l with C-locale to ensure result doesn't contain locale-dependent decimal separator. r=Waldo 2017-12-05 04:24:41 -08:00
Zibi Braniecki
4bdf6bf95e Bug 1428698 - Align intl::locale::Locale with BCP47. r=jfkthame
MozReview-Commit-ID: AT9MPppx99p

--HG--
extra : rebase_source : ef98f45c430822de0eb400d1256d61988e9cc1f9
2018-01-25 14:50:32 -08:00
Dorel Luca
f0dfa23b9e Backed out changeset 804f26b2c6b8 (bug 1428698) for xpcshell failure on toolkit/mozapps/extensions/test/xpcshell/test_bug397778.js on a CLOSED TREE
--HG--
extra : amend_source : 0a86497ef3fed6c36a638ccc640d1eccbe14bce6
2018-01-26 03:43:51 +02:00
Zibi Braniecki
2f307daaf1 Bug 1428698 - Align intl::locale::Locale with BCP47. r=jfkthame
MozReview-Commit-ID: AT9MPppx99p

--HG--
extra : rebase_source : 5086b899f50f29785cfa8c07c6df03bc281e8529
2018-01-25 14:50:32 -08:00
Zibi Braniecki
0d01f18858 Bug 1428530 - Separate out mozilla::intl::Locale. r=jfkthame
MozReview-Commit-ID: IELFjNCoJEo

--HG--
extra : rebase_source : 305dfb77cfa071c699ab4a9af38f59bb37c94711
2018-01-06 00:23:09 -08:00
Henri Sivonen
5b05e804a9 Bug 1431025 - Use encoding_rs::mem::is_utf16_bidi() as the implementation of HasRTLChars(). r=jfkthame
MozReview-Commit-ID: KnaI7wIndVf

--HG--
extra : rebase_source : 6a00c8fc140c1cf070e8fa668e7e099f98621820
2018-01-18 14:28:15 +02:00
Henri Sivonen
a710d83a47 Bug 1428774 - Avoid surrogate math in HasRTLChars(). r=jfkthame
Behavior change: Certain unpaired high surrogates will result in
the text being considered RTL where that wasn't the case before.

MozReview-Commit-ID: JL7wiRjhslC

--HG--
extra : rebase_source : ecd521a97be8908bb839aca02d624d86d5b0337f
2018-01-09 10:55:41 +02:00
Andreea Pavel
9c23902d5f Backed out changeset 994e33a96d17 (bug 1428530) for build bustage at z:\build\build\src\intl\locale\locale.h on a CLOSED TREE 2018-01-23 20:43:43 +02:00
Zibi Braniecki
9ca3cdc5a5 Bug 1428530 - Separate out mozilla::intl::Locale. r=jfkthame
MozReview-Commit-ID: IELFjNCoJEo

--HG--
extra : rebase_source : a735a893e93669af5b91951519ea9dadeb8123ad
2018-01-06 00:23:09 -08:00
Jonathan Kew
495385a338 Bug 1431672 - Add a pref to control whether underscore is treated as a word-forming character. r=m_kato 2018-01-22 10:19:30 +00:00
Francesco Lodolo (:flod)
653d91c87f Bug 1263437 - Add missing information for languages shipping in Firefox/Fennec: ach, cak, kab, lij, ltg, zam r=m_kato
MozReview-Commit-ID: 7HxOMEUZgyI

--HG--
extra : rebase_source : 28e543c077e3f7b767dda0eb73304fa516b59b97
2018-01-17 09:20:11 +01:00
Zibi Braniecki
48af78525e Bug 1430697 - Fix tests regression introduced in e140335f1237. r=gandalf
MozReview-Commit-ID: HBXb2ECaTF9

--HG--
rename : intl/l10n/test/dom/test_domloc_translateElement.html => intl/l10n/test/dom/test_domloc_translateElements.html
extra : rebase_source : b909c575f90c032a179478457361dc1075114523
2018-01-15 18:35:40 -08:00
Zibi Braniecki
5dce5171eb Bug 1389384 - Batch l10n mutations to one per paint. r=mossop
MozReview-Commit-ID: AbclA2lzTfT

--HG--
extra : rebase_source : 190d20cc82ca66134ebf71476c6c08126e898bd7
2017-12-16 21:42:58 -06:00
Gurzau Raul
98d53e9368 Backed out changeset 67f5e518f575 (bug 1389384) for failing xpcshell tests on intl/l10n/test/test_domlocalization.js on a CLOSED TREE 2018-01-13 01:42:59 +02:00
Zibi Braniecki
2d7fdf7ca8 Bug 1389384 - Batch l10n mutations to one per paint. r=mossop
MozReview-Commit-ID: AbclA2lzTfT

--HG--
extra : rebase_source : 2101fb1c0f713a389356fd85e4d26288a7581767
2017-12-16 21:42:58 -06:00
André Bargull
ca61705b43 Bug 1415827 - Update in-tree ICU to release 60.2. rs=Waldo 2017-12-18 08:54:56 -08:00
Henri Sivonen
381880a0e0 Bug 1428771 - Make UCS2_CHAR_IS_BIDI check for lead surrogates corresponding to U+1E800...U+1EFFF and rename to UTF16_CODE_UNIT_IS_BIDI. r=jfkthame
MozReview-Commit-ID: 9ZKF6SaN79n

--HG--
extra : rebase_source : 406f2647e65e2bdb97190b12564bafa6df39e6a8
2018-01-08 16:18:32 +02:00
Francesco Lodolo (:flod)
1d956ff4c6 Bug 1428366 - Add new plural rule (6 forms) for Welsh to PluralForm.jsm r=Pike
MozReview-Commit-ID: GJ87J9gtqQt

--HG--
extra : rebase_source : 063da20f9183bad79194af670599310d211ac20e
2018-01-08 08:50:38 +01:00
Jonathan Kew
9d2a5668d2 Bug 196175 - patch 2 - Override category of underscore for word-selection purposes so it is treated as a word-forming character, and update word-movement tests accordingly. r=m_kato 2018-01-03 10:02:39 +00:00
Florian Quèze
0f55cd45be Bug 1421992 - script-generated patch to replace do_execute_soon, do_print and do_register_cleanup with executeSoon, info and registerCleanupFunction, rs=Gijs. 2017-12-21 11:10:23 +01:00
Florian Quèze
032c961e0a Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
Masatoshi Kimura
a214244141 Bug 1425217 - Remove Encoding::ForName. r=hsivonen
MozReview-Commit-ID: JzJ2VYGRzf0

--HG--
extra : rebase_source : 38207daa923175d90b0319dae7e166164835af97
2017-12-08 00:31:55 +09:00
Jonathan Kew
1a613e00cb Bug 1424898 - patch 2 - De-virtualize nsIWordBreaker and rename to mozilla::intl::WordBreaker. r=m_kato
--HG--
rename : intl/lwbrk/nsSampleWordBreaker.cpp => intl/lwbrk/WordBreaker.cpp
rename : intl/lwbrk/nsIWordBreaker.h => intl/lwbrk/WordBreaker.h
2017-12-13 22:17:38 -06:00
Jonathan Kew
574a922078 Bug 1424898 - patch 1 - De-virtualize nsILineBreaker and rename to mozilla::intl::LineBreaker. r=m_kato
--HG--
rename : intl/lwbrk/nsJISx4051LineBreaker.cpp => intl/lwbrk/LineBreaker.cpp
rename : intl/lwbrk/nsILineBreaker.h => intl/lwbrk/LineBreaker.h
2017-12-13 22:17:32 -06:00
Jonathan Kew
c7374d78f3 Bug 1423408 - Allow line-break between ellipsis/leader dots and a following letter. r=masayuki 2017-12-12 16:21:55 -06:00
Eric Rahm
6058ba50a3 Bug 1423798 - Remove headers included for backwards compat in nsString.h. r=njn on a CLOSED TREE
Remove the headers included for "backwards compatibility" and just include them
where required.

--HG--
extra : source : e2beba7e6875120ebbbcadf24bcbcb5b86411a94
extra : amend_source : 11f07a27431cd468511f0bd45afe36150c6e342c
2017-12-06 19:36:57 -08:00
Csoregi Natalia
f488657fbd Backed out changeset e2beba7e6875 (bug 1423798) for failing Browser Chrome tests browser_temporary_permissions_expiry.js on Windows 7 debug. r=backout on a CLOSED TREE 2017-12-09 07:23:35 +02:00
Gurzau Raul
0fcc1a37e6 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-12-09 00:57:59 +02:00
Eric Rahm
74880b3483 Bug 1423798 - Remove headers included for backwards compat in nsString.h. r=njn
Remove the headers included for "backwards compatibility" and just include them
where required.

--HG--
extra : rebase_source : 03e703a81ed4b80f4f116ff36d8787464ce5acba
2017-12-06 19:36:57 -08:00
Cosmin Sabou
c191e25cf5 Merge mozilla-inbound to mozilla-central r=merge a=merge 2017-12-08 11:56:44 +02:00
Eric Rahm
07c97a5afe Bug 1423773 - Part 1: Remove usage of nsStringGlue.h. r=glandium
This removes an unnecessary level of indirection by replacing all
nsStringGlue.h instances with just nsString.h.

--HG--
extra : rebase_source : 340989240af4018f3ebfd92826ae11b0cb46d019
2017-12-06 16:52:51 -08:00
Sylvestre Ledru
9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Zibi Braniecki
013a1dfb6b Bug 1423463 - Update the LocaleService to handle ja-JP-mac better. r=jfkthame
MozReview-Commit-ID: 9LzDgbIHnhW

--HG--
extra : rebase_source : d007274d6fed77ddb0b53765bb0f2a3abc689185
2017-12-07 11:51:31 -08:00
Bogdan Tara
8c4a5326da Backed out 1 changesets (bug 1423463) for failing due to syntax errors in /builds/worker/workspace/build/src/intl/locale/LocaleService.cpp r=backout on a CLOSED TREE
Backed out changeset 97f4bb99a1a9 (bug 1423463)
2017-12-07 19:43:03 +02:00
Zibi Braniecki
402ccab870 Bug 1423463 - Update the LocaleService to handle ja-JP-mac better. r=jfkthame
MozReview-Commit-ID: FdwMLcgdcvx

--HG--
extra : rebase_source : 07cb7739cd189ce49cbbc2520a7e8c2fc10a7b86
2017-12-05 23:10:37 -08:00
Zibi Braniecki
a5600cdb98 Bug 1414390 - Add intl.locale.requested locale list to replace general.useragent.locale. r=jfkthame,mossop
This patch moves us from using an old pref `general.useragent.locale`combined
with `intl.locale.matchOS` for retrieving user requested locale, to use a new
preference `intl.locale.requested` which stores a list of well-formed BCP47
language tags. If set to empty, the OS locales are used. If not set at all,
default locale is used.

We are also adding a piece of code to migrate from old to new system.


MozReview-Commit-ID: 854yQ1kC6Ee

--HG--
extra : rebase_source : c4a7171bc026f857f7878ee83d973ec01b536a84
2017-11-01 20:16:21 -07:00
Makoto Kato
153c591749 Bug 1032671 - Part 4. Font fallback should detect emoji range for color emoji font. r=jfkthame
MozReview-Commit-ID: AeqSLUU9GRH

--HG--
extra : rebase_source : 3a3d0c70072b990d83b1304eb527f30307f6e944
2017-11-12 16:36:24 +09:00
Makoto Kato
b970e21a69 Bug 1032671 - Part 1. Add emoji presentation API for UTR#51. r=jfkthame
From ICU 57, ICU supports emoji presentation as draft API.

MozReview-Commit-ID: 6JgQMv4Ky9m

--HG--
extra : rebase_source : 60f451e7476f16ed48aeaccb1fc55d3962a2b4b2
2017-11-12 16:06:18 +09:00
Makoto Kato
fecccc72f6 Bug 943272 - Get rid of nsIPlatformCharset. r=emk
MozReview-Commit-ID: DVatkTEYA1q

--HG--
extra : rebase_source : f95d587d3af94c0e058dde5c98ab917d98fcc48a
2017-11-27 12:45:14 +09:00
Francesco Lodolo (:flod)
64e1bd8242 Bug 1415906 - Update references to Macedonian in PluralForm.jsm r=Pike
Also marked rule #14 as unused.

MozReview-Commit-ID: GbfHY5NKgms

--HG--
extra : rebase_source : a2bb662155302705e7702e4ef3f6108adf244a2f
2017-12-01 10:13:04 +01:00
Makoto Kato
1e66d08774 Bug 1418477 - Part 1. Should check error status of unum_open. r=jfkthame
We don't check error of unum_open, so we should check it.  Because
unum_setAttribute doesn't have UErrorCode parameter.

MozReview-Commit-ID: 3j7jeiKbdG

--HG--
extra : rebase_source : 61d0daf8f14f1a36623967d9d63648a8a88e25ae
2017-11-22 11:57:53 +09:00
Jonathan Kew
f793736782 Bug 1418724 - part 4 - Register for notifications from macOS when the user's locale preferences are updated. r=m_kato 2017-11-21 11:03:30 +00:00
Jonathan Kew
fe16ec91fd Bug 1418724 - part 3 - Make the OSPreferences service return the user's list of preferred languages from macOS, not just a single locale code. r=m_kato 2017-11-21 11:02:59 +00:00
Zibi Braniecki
fb1208b237 Bug 1418771 - Introduce LocaleService::LastFallbackLocale. r=jfkthame
MozReview-Commit-ID: 852mUquHOtW

--HG--
extra : rebase_source : f0ee91283a4a80001049d99d8b203f9c241136be
2017-11-16 00:09:15 -03:00
Francesco Lodolo (:flod)
618992092f Bug 1415896 - Update plural rule #3 (lv, ltg) for numbers ending in 0 r=Pike
MozReview-Commit-ID: IHhE3xg3nb0

--HG--
extra : rebase_source : 3135b6d5c716e1359ad7fc5ae21d6885e9918543
2017-11-17 11:13:47 +05:30
André Bargull
4d1b9920dd Bug 1405993 - Part 6: Regenerate Unicode files after ICU update. r=jfkthame
--HG--
extra : rebase_source : 058ef6104e2aafb407ee951d4b1dd1ab79b6b002
2017-11-01 12:10:08 -07:00
André Bargull
3296f48ec9 Bug 1405993 - Part 3: Update in-tree ICU to release 60.1. rs=Waldo
--HG--
extra : rebase_source : 468a4fc2e1fa7215b1224d998024a7121a05af62
2017-11-01 11:56:15 -07:00
André Bargull
db02e51a31 Bug 1405993 - Part 2: Remove no longer used ICU patches. r=Waldo
--HG--
extra : rebase_source : ef32ed7d42c283997ae0dac0db274f35fb5431f5
2017-11-01 11:48:48 -07:00
Makoto Kato
717646428c Bug 1416618 - Cannot show short date format (yy/MM/dd'('ddd')') correctly. r=jfkthame
On Windows 7, there is yy/mm/dd'('ddd')' as short date format of Japanese.
When selecting this, ddd isn't converted to day of the week correctly.

FindInReadable will update start position iterator even if not found. So when
using FindInReadable again, we have to reset start position iterator.

MozReview-Commit-ID: AoS1Txq3Twc

--HG--
extra : rebase_source : 2f02189d0288e833debb2d4ca47efbca632924e5
2017-11-14 10:53:51 +09:00
Dylan Roeh
ebd39f9ce0 Bug 1337078 - Improve the use of Android API in OSPreferences r=snorp
Add BrowserLocaleManager.refreshLocales, a native function which calls OSPreferences::Refresh, and BrowserLocaleManager.getLocale, which returns the current locale string. Use these in place of observing modification of the intl.locale.os pref.
2017-11-10 09:20:04 -06:00
Francesco Lodolo (:flod)
e16c6fe647 Bug 1396724 - Add plural rule for Shuar language to intl/locale/PluralForm.jsm r=Pike
MozReview-Commit-ID: 5HOVoaBHlGu

--HG--
extra : rebase_source : 9e04aa4f2026ac0349cdb1d245f18f8984bf6568
2017-09-05 08:37:55 +02:00
Makoto Kato
945aa85d0c Bug 1292486 - Get rid of nsIUnicodeNormalizer interface. r=jfkthame
m-c and c-c don't use nsIUnicodeNormalizer interface now.

MozReview-Commit-ID: DGK7wBrcrob

--HG--
extra : rebase_source : 9260435fb2d4455b45920971c105a8d502c4e53e
extra : histedit_source : cf2863ebff742f160f30e6a15517f07490f1e6a6
2017-10-20 17:35:34 +09:00
Zibi Braniecki
73ec17fff9 Bug 1414872 - Fix always adding source locale to requested locales fallback chain. r=jfkthame
MozReview-Commit-ID: CwvBkEJqQRi

--HG--
extra : rebase_source : 13274b1a6dbe0a7d1538ae42c0c1a2a40af11efa
2017-11-06 09:01:35 -08:00
Zibi Braniecki
d7b8f3b63e Bug 1414186 - Use GetUserPreferredUILanguages for OSPreferences::SystemLocales. r=jfkthame
MozReview-Commit-ID: LId0mLIpfWQ

--HG--
extra : rebase_source : 256e1f5db5a7429e2ef692bb2b9ee818521bb12d
2017-11-03 00:51:05 -07:00
Zibi Braniecki
bbadabd3ce Bug 1410731 - Use multilocale.json as a locale set for L10nRegistry sources. r=mossop
MozReview-Commit-ID: 4SsInmlt1C4

--HG--
extra : rebase_source : bf2e00d5545d9becb5b3fad25d4e24e196cadd20
2017-10-22 11:09:44 -07:00
André Bargull
04879cba6b Bug 1411957 - Part 2: Update tzdata in ICU data files to 2017c. r=Waldo
MozReview-Commit-ID: IHLvaaTEIPm
2017-10-26 23:10:51 +09:00
Chris Manchester
c86173526a Bug 1403346 - Replace all uses of ALLOW_COMPILER_WARNINGS with a template, remove ALLOW_COMPILER_WARNINGS. r=glandium
MozReview-Commit-ID: 1G2o4fy74cf
2017-10-25 15:12:09 -07:00
Zibi Braniecki
f50ce10902 Bug 1410733 - Add an en-US locale as a hard fallback for LocaleService::RequestedLocales. r=jfkthame
MozReview-Commit-ID: LPS3PaeykEh

--HG--
extra : rebase_source : 5ab83371ccfad13f02bf276055fdf9cba7e80a9e
2017-10-22 11:00:09 -07:00
Nika Layzell
1b1ba4879a Bug 1403213 - Move nsstring into servo/support/gecko/nsstring, r=froydnj
MozReview-Commit-ID: 8ucStGkxmj7

--HG--
rename : xpcom/rust/nsstring/gtest/Test.cpp => xpcom/rust/gtest/nsstring/Test.cpp
rename : xpcom/rust/nsstring/gtest/test.rs => xpcom/rust/gtest/nsstring/test.rs
extra : rebase_source : 509a2ab1aa569e8f3ef0955dcdfa36b53ce5e234
2017-10-23 15:37:25 -04:00
Sebastian Hengst
3beb11d7e8 Backed out changeset 84f325dfaa00 (bug 1410733) for failing xpcshell's intl/l10n/test/test_localization.js on debug. r=backout
--HG--
extra : amend_source : 1567ed5f595a3e725d4003e7897c11ca78d03ee1
2017-10-24 18:57:39 +02:00
Zibi Braniecki
63fc064db9 Bug 1410733 - Add an en-US locale as a hard fallback for LocaleService::RequestedLocales. r=jfkthame
MozReview-Commit-ID: LPS3PaeykEh

--HG--
extra : rebase_source : fd2ef3aaa10c809e93d4fe1bf9f962689c1bb9aa
2017-10-22 11:00:09 -07:00
Masatoshi Kimura
dbd92543c6 Bug 1313150 - Remove |weak| parameter from nsIMutableArray methods. r=froydnj
MozReview-Commit-ID: 7JoD4VYzZp3

--HG--
extra : rebase_source : 5db437f1c34608aa223916874d62b48c59baeae8
2017-10-21 23:53:02 +09:00
Zibi Braniecki
891932b111 Bug 1409185 - Generalize language-matching for date/time patterns in OSPreferences. r=jfkthame
MozReview-Commit-ID: LF98Avi6egj

--HG--
extra : rebase_source : b5e4963685a5e67db460783da304a81e9832ea33
2017-10-16 14:32:29 -07:00
Sebastian Hengst
5d671ee296 Backed out changeset 74c58b336d30 (bug 1403213) for referencing non-existing xpcom/rust/gtest/moz.build in xpcom/moz.build. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 7c25d872785312b81c4a94ef32de025b38642f54
2017-10-20 21:30:36 +02:00
Nika Layzell
a4927e2417 Bug 1403213 - Move nsstring into servo/support/gecko/nsstring, r=froydnj
MozReview-Commit-ID: FmKtJxSCdYc
2017-10-20 12:04:30 -07:00
Zibi Braniecki
fc54af78ae Bug 1410266 - Explicitly include locale.h in OSPreferences_gtk.cpp. r=jfkthame
MozReview-Commit-ID: 23Q7xGGBMNT

--HG--
extra : rebase_source : 6cb5bc0284f5212c1289fd5d974ad2c7219878da
2017-10-19 16:51:11 -07:00
Zibi Braniecki
feea53af8e Bug 1409158 - Use LC_TIME to retrieve OSPreferences::GetRegionalPrefsLocales on Unix. r=jfkthame
MozReview-Commit-ID: ImjQCggy8yk

--HG--
extra : rebase_source : 4d943dda3332049bc52c17eca01cf935275897be
2017-10-16 13:55:51 -07:00
Nick Alexander
8bd04abc29 Bug 1128033 - Install hyphenation files with FINAL_TARGET_FILES. r=gps
MozReview-Commit-ID: H7TXhfsVZnw

--HG--
extra : rebase_source : 7edf1d9d2e4cc502ee54804a30e97499be394732
2015-01-30 14:17:19 -08:00
Zibi Braniecki
72cc1348b6 Bug 1352343 - Rename LocaleService::On* methods to LocaleService::*. r=jfkthame
MozReview-Commit-ID: LvEW9GcOodb

--HG--
extra : rebase_source : b54931ca7f80c4b7bb88255607ac976d9deb0bb8
2017-10-10 10:39:12 -07:00
Zibi Braniecki
fffc0479b7 Bug 1352343 - Bind LocaleService to react to OSPreferences intl:system-locales-changed. r=jfkthame
MozReview-Commit-ID: Hnhun0bAVSr

--HG--
extra : rebase_source : bbd12e0eca463948bcc7e3cc02d830b83053094a
2017-10-05 18:43:38 +02:00
Sebastian Hengst
512032ece4 Backed out changeset 0699fcfd990f (bug 1352343) for build bustage. r=backout on a CLOSED TREE 2017-10-10 22:05:58 +02:00
Sebastian Hengst
4ae6666726 Backed out changeset 279dc744683e (bug 1352343) 2017-10-10 22:05:03 +02:00
Zibi Braniecki
cfe1556078 Bug 1352343 - Rename LocaleService::On* methods to LocaleService::*. r=jfkthame
MozReview-Commit-ID: LvEW9GcOodb

--HG--
extra : rebase_source : dab3af0ef01aeedad9faed4c0999492eef97e684
2017-10-10 10:39:12 -07:00
Zibi Braniecki
e6913c46a1 Bug 1352343 - Bind LocaleService to react to OSPreferences intl:system-locales-changed. r=jfkthame
MozReview-Commit-ID: Hnhun0bAVSr

--HG--
extra : rebase_source : 4aa553251bde30797de84bd72ef872891d44d1a3
2017-10-05 18:43:38 +02:00
Nicholas Nethercote
d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Wes Kocher
61c098eae7 Merge inbound to m-c a=merge CLOSED TREE
MozReview-Commit-ID: 3pMHYV9oXLm

--HG--
rename : dom/base/nsReferencedElement.cpp => dom/base/IDTracker.cpp
rename : dom/base/nsReferencedElement.h => dom/base/IDTracker.h
2017-09-27 16:51:49 -07:00
Chris Peterson
c4dff4f83d Bug 1402666 - Part 3: Replace Replace(NS_LITERAL_STRING("")) with ReplaceLiteral(u""). r=erahm
MozReview-Commit-ID: Ji6UdG32RF4

--HG--
extra : rebase_source : 1565a1e99f40785dad0d0d7652e42222dcdf8881
extra : source : c57e906ba75fda4745134ef8307589e28f4c8d70
2017-09-15 19:32:55 -07:00
Chris Peterson
14c40f3dac Bug 1402666 - Part 1: Replace Replace("") with ReplaceLiteral(""). r=erahm
MozReview-Commit-ID: s2hrTSkBiJ

--HG--
extra : rebase_source : d3b3551ed7ed1d5c8f70fc98d72510a13868ada1
extra : source : 1c45e10702e7884cd536a25b1d39c3de90fd2914
2017-09-15 19:22:58 -07:00
Nicholas Nethercote
dfd3b7e7aa Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ

--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
Jonathan Kew
6a476d3cea Bug 1402799 - Remove '#if ENABLE_INTL_API' conditional from line-breaker code. r=m_kato 2017-09-25 12:37:13 +01:00
Jonathan Kew
6472fbd7dc Bug 1402271 - patch 3 - Remove non-ENABLE_INTL_API code paths from the nsUnicodeProperties code. r=m_kato 2017-09-25 09:18:20 +01:00
Jonathan Kew
ae0f800c6e Bug 1402271 - patch 2 - Regenerate Unicode data tables with the stripped-down tool. r=m_kato 2017-09-25 09:18:14 +01:00
Jonathan Kew
26d09a9bd2 Bug 1402271 - patch 1 - Simplify the genUnicodePropertyData.pl tool to generate only the data we need to supplement ICU properties. r=m_kato 2017-09-25 09:18:05 +01:00
André Bargull
8cb57f8a5e Bug 1387476 - Import time zone detection patch from ICU to improve tz handling in newer Linuxes and macOS 10.13. r=gandalf 2017-09-21 21:39:12 +02:00
Jonathan Kew
de0c996277 Bug 1402273 - Build ICUUtils unconditionally, now that we no longer build without ENABLE_INTL_API on any platform. r=m_kato 2017-09-24 13:35:59 +01:00
Chris Peterson
47e9fa9ec2 Bug 870698 - Part 5: Replace Assign(NS_LITERAL_CSTRING("")) with AssignLiteral(""). r=erahm
The NS_LITERAL_CSTRING macro creates a temporary nsLiteralCString to encapsulate the string literal and its length, but AssignLiteral() can determine the string literal's length at compile-time without nsLiteralCString.

MozReview-Commit-ID: KXJM13VRTB7

--HG--
extra : rebase_source : 3e50b1b3f23248d668d15310554559c39ff792f7
extra : source : 74f5e05877d50a79ec1e5330c227d2ce576a2d90
2017-09-06 01:35:56 -07:00
Chris Peterson
a0c8081df4 Bug 870698 - Part 4: Replace Equals("") with EqualsLiteral(""). r=erahm
MozReview-Commit-ID: G1GhyvD29WK

--HG--
extra : rebase_source : 115842c37a40041bdca7b4e1ff0a5680b02ced15
extra : source : 90bfff9c01d80086cdc17637f310e898fea295ea
2017-09-06 01:13:45 -07:00
Chris Peterson
9f4c1f5278 Bug 870698 - Part 1: Replace Assign("") with AssignLiteral(""). r=erahm
MozReview-Commit-ID: A0u9PP49OW3

--HG--
extra : rebase_source : 7d5286959f510eb4b7df1b7e32d5b9b58719c48b
extra : intermediate-source : f552b4a78236c42bc09030b3eb008725a3edb9c8
extra : source : 26ac4a1014f6661a70e3bf9f552407e12c2c3981
2017-09-03 22:12:56 -07:00
Jonathan Kew
87bb287cf3 Bug 1391213 - Make localeService.defaultLocale return the locale of the app package rather than a hard-coded en-US value. r=emk 2017-09-23 12:46:28 +01:00
Wes Kocher
528cd7a92c Merge m-c to autoland, a=merge
MozReview-Commit-ID: BelD7GUGNq6
2017-09-22 15:31:06 -07:00
Zibi Braniecki
c3a695eb34 Bug 1402234 - Remove the ENABLE_INTL_API=no code from intl/locale. r=jfkthame
MozReview-Commit-ID: IDgkmSb0bmV

--HG--
extra : rebase_source : 186958994646cbd71f6320a8c384c61f620ee784
2017-09-22 08:33:07 +02:00
Jonathan Kew
3bcb820ee6 Bug 1402053 - Remove our obsolete implementation of Unicode normalization, now that we can use ICU on all platforms. r=m_kato 2017-09-22 10:37:17 +01:00
Jonathan Kew
cc79ecacc0 Bug 1402090 - Remove obsolete ucdata code/tools, no longer used in the mozilla build. r=m_kato 2017-09-22 10:37:17 +01:00
Zibi Braniecki
3ca67e913e Bug 1347798 - Create a small per-document bindings for DOMLocalization. r=mossop
MozReview-Commit-ID: DfxIYVxyt9C

--HG--
extra : rebase_source : 8b7b31f268408dea46af6202c8943ff11a2c165e
2017-09-09 19:23:03 -07:00
Sebastian Hengst
6bba3e6d42 Backed out changeset e46cfa3b45ff (bug 1347798) because it will fail browser-chrome's browser_all_files_referenced.js. r=backout 2017-09-21 22:28:55 +02:00
Zibi Braniecki
f0b3f3cf16 Bug 1347798 - Create a small per-document bindings for DOMLocalization. r=mossop
MozReview-Commit-ID: DfxIYVxyt9C

--HG--
extra : rebase_source : 991b1603f3fc482ed385da0b68205566fa738c7b
2017-09-09 19:23:03 -07:00
Wes Kocher
4a0c680e2a Backed out changeset f1ae02c8d697 (bug 1347798) for eslint failures a=backout
MozReview-Commit-ID: FfrPYVOjyji
2017-09-21 12:07:00 -07:00
Zibi Braniecki
c89f208415 Bug 1347798 - Create a small per-document bindings for DOMLocalization. r=mossop
MozReview-Commit-ID: DfxIYVxyt9C

--HG--
extra : rebase_source : 946084f272be3aee55c6690200a51bf78a141fa8
2017-09-09 19:23:03 -07:00
Mantaroh Yoshinaga
6e075293a5 Bug 1362817 - Drop the DateTimeFormat::FormatTime(). r=m_kato
MozReview-Commit-ID: JuNaLYhWCHI

--HG--
extra : rebase_source : 9bc5379b6ebffdbeb60b24ec57ade115c4f40682
2017-09-19 18:35:51 +09:00
Zibi Braniecki
cc30b8a270 Bug 1400006 - Extend language negotiation in LocaleService to support looking for the best likelySubtag for the locale with region stripped. r=Pike
Add additional logic to our language negotation to do apply likelySubtags when a direct match is not available.

Currently, if the user specifies the locale with region, and we do not have a direct for that region, we pick all locales for the same language and other regions in no order.

The example of where it returns suboptimal results:

1) Requested locale "en-CA"
2) Available locales ["en-ZA", "en-GB", "en-US"]
3) Negotiated locales ["en-ZA", "en-GB", "en-US"]

This would not happen, if the user requested a generic "de", "en" etc.:

1) Requested locale "en"
2) Available locales ["en-ZA", "en-GB", "en-US"]
3) Negotiated locales ["en-US", "en-ZA", "en-GB"]

because after not finding a direct match, we would use likelySubtags to extend "en" to "en-Latn-US" and then find the priority match in "en-US".

This patch extends this logic to "en-US" or "de-LU" by adding a step which strips the region tag and then applies likelySubtag on the result.

This means that in absence of direct match the following fallbacks would happen:

"de-LU" -> "de-DE"
"es-CL" -> "es-ES"
"en-CA" -> "en-US"

This does not affect languages that use multiple scripts, so ar, sr and zh are not affected.

MozReview-Commit-ID: BR1WrgXSf6a

--HG--
extra : rebase_source : abc205c4f993680ab0cd0c8b8c016543d5462d01
2017-09-14 15:21:33 -07:00
Makoto Kato
9990002068 Bug 1387937 - Part 2. Add patch file. r=jfkthame
MozReview-Commit-ID: Ej5YLm9dz57

--HG--
extra : rebase_source : ed3e5504a4357ab8f6502dd07301cdada2ef138e
extra : histedit_source : 295998882be300c3e391535bf3e1bd8fc719d047
2017-09-15 19:07:06 +09:00
Makoto Kato
d300b82736 Bug 1387937 - Part 1. Import changeset 40324. r=jfkthame
MozReview-Commit-ID: 86oFSd6ifc7

--HG--
extra : rebase_source : 9d4568c4bd79d739ed3ae5f3a42f2b8157306454
extra : histedit_source : 158eae8522722234cd3ea914db9f507b111d916e
2017-09-15 18:57:20 +09:00
Sebastian Hengst
261dd76eb6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: ACCqbunIDpp
2017-09-09 11:44:38 +02:00
Zibi Braniecki
3523ff39ae Bug 1394977 - Move L10nRegistry to use async iterators. r=mossop
MozReview-Commit-ID: 5szrQ1UWJ64

--HG--
extra : rebase_source : b72a952128d0b4aed9a142c0e4d4b30b26960f80
2017-09-08 23:19:49 -07:00
Phil Ringnalda
8cb8e27250 Backed out changeset 97dbcd99280d (bug 1394977) for xpcshell failures in test_localization.js
MozReview-Commit-ID: 1ZyUZB7cigl
2017-09-08 22:21:00 -07:00
Kris Maglione
93fb7fb9ac Bug 1398357: Part 1 - Fix removal of LocaleService preference observers. r=gandalf
By the time the LocaleService destructor is called, by definition sInstance
has been cleared and its preference observers have been removed, since both
are strong references. In practice, this doesn't seem to cause trouble, but it
does lead to worrying warnings at shutdown in debug builds, which are annoying
red herrings when debugging other issues.

MozReview-Commit-ID: IalOigr2GWN

--HG--
extra : rebase_source : f86a8e81b91c639dedaca85e5bc3b53d54e01645
extra : histedit_source : 643b76de0d29ca4890ac4dd4175259989a63688e
2017-09-08 17:51:43 -07:00
Zibi Braniecki
b45802f003 Bug 1394977 - Move L10nRegistry to use async iterators. r=mossop
MozReview-Commit-ID: I6KuXyoItOQ

--HG--
extra : rebase_source : 97c1ada528e3a1536ea64905023e5fa41311a9a6
2017-08-29 01:06:47 -07:00
Zibi Braniecki
02a6797952 Bug 1397925 - Refresh OSPreferences mSystemLocales when intl.locale.os changes. r=rnewman
MozReview-Commit-ID: oJdWUXwhZw

--HG--
extra : rebase_source : f66fe06990d4d55d39e9a7924c2d6039aa3c6772
2017-09-07 14:53:36 -07:00
Sebastian Hengst
4d0bad92dd merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: Gsw48p934sI
2017-09-02 10:54:44 +02:00
Zibi Braniecki
b7a3ab7ad6 Bug 1347799 - Add DOMLocalization module for the new Localization API. r=mossop
MozReview-Commit-ID: Kw0U6I0E94F

--HG--
extra : rebase_source : 7f3ea6507bade3cd9d4afe45960340273cdb6bac
2017-08-25 11:16:30 -07:00
Henri Sivonen
3c8567b60d Bug 1354989 - Avoid pivoting via UTF-16 when loading CSS in the Stylo mode. r=jdm,SimonSapin
MozReview-Commit-ID: Llt29dvB4Io

--HG--
extra : rebase_source : 3ae51dc8beff3fb19e9318a6c7c30c9ab08a5b57
2017-08-29 16:01:42 +03:00
Mats Palmgren
0735644b45 Bug 815077 - Make unicode ETHIOPIC WORDSPACE count as a space character. r=jfkthame
MozReview-Commit-ID: DhUayZurZ00
2017-08-31 19:08:20 +02:00
Makoto Kato
2a3c054c7b Bug 1394661 - Use user locale instead of system locale for font fallback. r=gandalf
Until Firefox 54, font fallback uses user locale.  Example, OS is Windows 10 JA with JA UI, Firefox uses JA font for fallback even if Firefox is US version.

But since we changed some locale code on Firefox 55 development cycle, there were some regressions such as bug 1346674.  So we changed fallback locale to system locale (instead of Firefox UX locale) for font selection by bug 1348259.

It isn't good for old compatibility, so we should use user locale for font fallback like Firefox 54.  Now we can get user locale by OSPreferences::GetRegionalPrefsLocales, use it for font fallback


MozReview-Commit-ID: 7qwDDeU1ZPt

--HG--
extra : rebase_source : 3a307dd239bea516e117961a944b714bc43a993c
2017-08-30 17:33:12 +09:00
Emilio Cobos Álvarez
ff0fdb1a67 Bug 1394311: Use lowercase consistently for looking up the language group. r=manishearth
This should be the only callee affected, given
gfxPlatformFontList::GetFontPrefLangFor already uses case-insensitive string
comparison.

This makes it also consistent with the rest of the functions in the file, which
lowercase their inputs as well.

MozReview-Commit-ID: 4fNUBdpayHL

--HG--
extra : rebase_source : d669f5da2a1ed06f6348fc6b86eb379b514ddcf3
2017-08-28 09:06:11 +02:00
Kris Maglione
5395a3712b Bug 1363482: Part 3 - Preload string bundles off-thread during startup. r=erahm
MozReview-Commit-ID: 3Fig5BS9xMz

--HG--
extra : rebase_source : 0eab403521cdb37c86a66f61c0cbcf291b699041
2017-08-31 17:23:08 -07:00
Henri Sivonen
610f9e27b1 Bug 1372230 part 2 - Update encoding_rs to 0.7.0 and encoding_c to 0.8.0. r=emk
MozReview-Commit-ID: DuK9BvVY50z

--HG--
extra : rebase_source : b7ce43f3fd61500e6adf642ea48e6774976d4eff
2017-08-28 12:22:25 +03:00
Henri Sivonen
5bf76fcb7e Bug 1372230 part 1 - Move the code behing mozilla::Encoding::ForName() from encoding_rs to encoding_glue. r=emk
MozReview-Commit-ID: 6cFRuyWoPhR

--HG--
extra : rebase_source : 9f91299d738b26decc3483d4e5af2265a9561566
2017-08-25 12:37:28 +03:00
Zibi Braniecki
c5a354a1d6 Bug 1393928 - Expose intl/l10n .jsm APIs explicitly. r=mossop
MozReview-Commit-ID: Z57nlQJnQT

--HG--
extra : rebase_source : 5b6e5e804a14eef7847dfa1aada4588d401a43f6
2017-08-25 12:59:18 -07:00
Makoto Kato
dd679562b1 Bug 1391628 - Use fallback locale on nsICollation if locale is invalid. r=emk
Original issue is that Microsoft Dynamics CRM uses invalid lang attribute in <xsl:sort>.

<xsl:sort order="descending"
          select="@displayname[$sortColumnName='displayname'] |
                  @name[$sortColumnName='name'] |
                  exslt:node-set($FriendlyTypeNames)/types/type[@xmlName=current()/@datatype and $sortColumnName='datatype']"
          lang="$languageName"/>

Our XSLT implementation detects "$languageName" as locale name, then use it to nsICollation.

Until Gecko 54 for Windows, even if using invalid locale name for nsICollation, it uses platform locale as fallback.  But from 55, we use same implementation as macOS's to use ICU.  So this issue occurs.  ICU implementation doesn't use fallback locale if it is invalid.

We should use fallback locale if locale is invalid.  Most code for fallback locale such as FallbackEncoding uses application locale, so use it.

MozReview-Commit-ID: EKYkZG7Hnz0

--HG--
extra : rebase_source : fec89c67317d7df041f3b237122fb7e20e32fe1b
2017-08-24 23:13:42 +09:00
Masayuki Nakano
6b9eda1dda Bug 1392181 - part2: HasRTLChars() should check if the character is at least equal or larger than the minimum RTL character, U+0590 r=emk
HasRTLChars() appears in profile of attachment 8848015 after landing the patches
for bug 1391538 because the landing made text in <input> or <textarea> always
treated as non-single byte characters.  Therefore, HasRTLChars() is now called
by nsTextFragment::SetTo() a lot in editors.

HasRTLChar() checks if it's in an RTL character for each character until it
becomes true.  However, if character is less than the minimum RTL character,
U+0590, it works faster at least for Western languages.

MozReview-Commit-ID: 4YecxQWUcmK

--HG--
extra : rebase_source : 172be670795f0e2155d4bd5044ee37f652367734
2017-08-21 18:03:21 +09:00
Nicholas Nethercote
8a72cf2251 Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm.
--HG--
extra : rebase_source : 69d58b0cfb56efc6b03d8e2d7be2ce3c3e6cd843
2017-08-21 20:01:27 +10:00
Simon Lindholm
8b0e1c2942 Bug 1387780 - Optimize string searching in MatchAutoCompleteFunction. r=adw, r=emk 2017-08-20 17:21:00 -04:00
Jonathan Kew
bd606d1190 Bug 1390550 - Update to latest libhyphen code from upstream. r=ryanvm 2017-08-17 09:58:29 +01:00
Nicholas Nethercote
025461bde7 Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm.
These are all easy cases where an nsXPIDLCString local variable is set via
getter_Copies() and then is only used in ways that nsCStrings can also be used
(i.e. no null checks or implicit conversions to |char*|).

In every case the patch trivially replaces the nsXPIDLCString with an
nsCString. (Also, there are a couple of unused nsXPIDLCString variables that
the patch simply removes.)
2017-08-16 13:58:35 +10:00
Carsten "Tomcat" Book
c329d562fb merge mozilla-inbound to mozilla-central a=merge 2017-08-09 11:37:08 +02:00
Nicholas Nethercote
d4e19d954a Bug 1388253 - Convert nsTextFormatter:[v]smprintf() use to [v]ssprintf(). r=erahm.
[v]ssprintf() is just a better way of doing things.

--HG--
extra : rebase_source : 25337787b9557f8a7080a67645dba70609a8f646
2017-08-09 10:41:14 +10:00
Zibi Braniecki
b69cead005 Bug 1347800 - Add Localization API for Gecko. r=mossop
MozReview-Commit-ID: 5wAde36zMHP

--HG--
extra : rebase_source : 1595b1c69ca2b2839724ed89020bfe22835ca05c
2017-06-02 10:36:56 +02:00
Zibi Braniecki
0c7d3529d7 Bug 1333980 - Introduce L10nRegistry.jsm. r=mossop
This patch introduces a new registry for localization resources to replace
ChromeRegistry. It uses asynchronous I/O and iterators to generate
permutations of possible sources of language resources for use in the new
Localization API.

In the initial form the API handles packages resources and has API for
interacting with the AddonsManager which will report language packs.

MozReview-Commit-ID: LfERDYMROh

--HG--
extra : rebase_source : 68a664c2c59a82b4dfcae66542c315a00ddae565
2017-06-02 10:36:08 +02:00
Zibi Braniecki
489d8a2762 Bug 1347801 - Land Fluent MessageContext (Parser, Resolver, Context). r=mossop
This patch lands the core of the new localization API:
 * Parser for the Fluent syntax called "FTL"
 * Resolver for the Fluent logic
 * MessageContext class which is a central class for storing and operating
   on Fluent messages.

MozReview-Commit-ID: E7nKGsLOCJe

--HG--
extra : rebase_source : 893178263744ef6cf6e64c135d28e10a53b61a19
2017-06-02 10:35:15 +02:00
Wes Kocher
cd50c88082 Backed out changeset fdf9ccb0b9ab (bug 1347801) for browser_all_files_referenced.js failures a=backout
MozReview-Commit-ID: EiSV0Jreid4
2017-08-08 14:15:08 -07:00
Wes Kocher
a27358fe6a Backed out changeset 3cb5dfb73fa3 (bug 1333980) for browser_all_files_referenced.js failures a=backout
MozReview-Commit-ID: 8dZ1lcv6p9V
2017-08-08 13:52:23 -07:00
Wes Kocher
ad5da66d11 Backed out changeset 251857f1fb4b (bug 1347800) for depending on a patch that's getting backed out a=backout
MozReview-Commit-ID: 1IYi6G7gqEL
2017-08-08 13:52:07 -07:00
Zibi Braniecki
2d2811520c Bug 1347800 - Add Localization API for Gecko. r=mossop
MozReview-Commit-ID: 5wAde36zMHP

--HG--
extra : rebase_source : cebd6c7cee576ad23aa2583f7ecaa7aeef2a2279
2017-06-02 10:36:56 +02:00