Commit Graph

5052 Commits

Author SHA1 Message Date
André Bargull
6ae41c9162 Bug 1689294: Update tzdata in ICU data files to 2021a. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103281
2021-01-29 14:25:21 +00:00
Henri Sivonen
9b210c311e Bug 1686463 - Gather telemetry about automatic encoding detection outcomes. r=chutten,emk
Differential Revision: https://phabricator.services.mozilla.com/D102397
2021-01-24 00:11:07 +00:00
Daisuke Akatsuka
82ebfda679 Bug 1678619: Release UDateFormat instance by udat_close after using it. r=zbraniecki
Depends on D100461

Differential Revision: https://phabricator.services.mozilla.com/D102256
2021-01-21 15:51:03 +00:00
smolnar
6652db1a08 Backed out 6 changesets (bug 1678619) on suspicion of causing crashes (bug 1687914). a=backout DONTBUILD
Backed out changeset c8b691b8e793 (bug 1678619)
Backed out changeset 37b2f438bd2b (bug 1678619)
Backed out changeset 0a92dfd99dac (bug 1678619)
Backed out changeset 2043a28e668e (bug 1678619)
Backed out changeset 53e385030d67 (bug 1678619)
Backed out changeset 9a1d599b4060 (bug 1678619)
2021-01-21 17:25:23 +02:00
Daisuke Akatsuka
2dc3194ddb Bug 1678619: Release UDateFormat instance by udat_close after using it. r=zbraniecki
Depends on D100461

Differential Revision: https://phabricator.services.mozilla.com/D102256
2021-01-20 12:44:06 +00:00
Dan Minor
57ae936f38 Bug 1420335 - Make OSPreferences::ReadDateTimePattern check 12h/24h on Android; r=zbraniecki
As is the case with GTK, Android provides an OS override to display times in
AM/PM or 24 hour format. This moves the code for rewriting skeletons from the
GTK specific code to OSPreferences, and calls it from the Android OSPreferences
implementation.

This was tested manually by visiting the file:/// uri. I don't believe this is
feasible to test from automation, as it would require changing Android OS settings
from within our test code.

Differential Revision: https://phabricator.services.mozilla.com/D101641
2021-01-15 19:28:12 +00:00
Bogdan Tara
60482b14fc Backed out changeset dc9229077eaa (bug 1420335) for security/manager* and toolkit/mozapps/* xpc failures CLOSED TREE 2021-01-14 18:43:19 +02:00
Dan Minor
487bcdd4ea Bug 1420335 - Make OSPreferences::ReadDateTimePattern check 12h/24h on Android; r=zbraniecki
As is the case with GTK, Android provides an OS override to display times in
AM/PM or 24 hour format. This moves the code for rewriting skeletons from the
GTK specific code to OSPreferences, and calls it from the Android OSPreferences
implementation.

This was tested manually by visiting the file:/// uri. I don't believe this is
feasible to test from automation, as it would require changing Android OS settings
from within our test code.

Differential Revision: https://phabricator.services.mozilla.com/D101641
2021-01-14 13:45:40 +00:00
Zibi Braniecki
a5fd18ba3a Bug 1686275 - Update fluent-rs to 0.14. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D101474
2021-01-13 16:30:20 +00:00
Butkovits Atila
4fb654352b Backed out changeset 1a9fcf5cbe17 (bug 1686275) for causing failures on test_formatMessages.html. CLOSED TREE 2021-01-13 06:47:00 +02:00
Butkovits Atila
99def9b5fb Backed out changeset 1857d3125d92 (bug 1686275) 2021-01-13 06:45:12 +02:00
Brindusan Cristian
0ca7a4ae1e Bug 1686275 - Fix build bustage. CLOSED TREE a=bustage-fix 2021-01-13 05:27:33 +02:00
Zibi Braniecki
1c1851d0fa Bug 1686275 - Update fluent-rs to 0.14. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D101474
2021-01-13 02:50:44 +00:00
Dan Minor
1465995b22 Bug 1685804 - Use nsIGSettingsService in OSPreferences_gtk; r=zbraniecki
This switches over to using nsIGSettingsService. This makes the gtest results
on gtk based systems depend on the current OS settings, so the test expectations
are adjusted to accept both AM/PM and 24h settings.

Differential Revision: https://phabricator.services.mozilla.com/D101362
2021-01-12 14:20:07 +00:00
Cosmin Sabou
c8d4553e77 Backed out changeset ae73e36cbf2a (bug 1685804) for causing gtest time related failures. CLOSED TREE 2021-01-11 23:42:40 +02:00
Dan Minor
b2b774c844 Bug 1685804 - Use nsIGSettingsService in OSPreferences_gtk; r=zbraniecki
This switches over to using nsIGSettingsService.

Differential Revision: https://phabricator.services.mozilla.com/D101362
2021-01-11 20:05:14 +00:00
André Bargull
3111f61a45 Bug 1685481: Update tzdata in ICU data files to 2020f. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D101020
2021-01-08 10:07:47 +00:00
Kartik Gautam
7ae6aea145 Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Cosmin Sabou
2978aa00a3 Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
Kartik Gautam
775cdec032 Bug 1684173 - Add newline character at end of files when missing r=sylvestre
Depends on D100443

Differential Revision: https://phabricator.services.mozilla.com/D100484
2020-12-27 11:43:41 +00:00
Kartik Gautam
f7ffcd09fb Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-15 10:34:54 +00:00
Dorel Luca
7320ae982a Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
Kartik Gautam
caf549c200 Bug 1679758 - Remove trailing empty lines r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-13 13:28:30 +00:00
Julien Wajsberg
f42ca1a49d Bug 1681725 - Fix a broken link to the Fluent tutorial r=flod DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D99352
2020-12-10 15:03:24 +00:00
Dan Minor
0790cac85a Bug 1681357 - Use regional prefs locale if locale is not specified in GetDateTimePattern; r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D99241
2020-12-09 16:50:14 +00:00
Dan Minor
3440d0e190 Bug 1681251 - Return AUTF8String from GetDateTimePattern in mozIOSPreferences; r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D99162
2020-12-09 03:16:23 +00:00
André Bargull
35813933df Bug 1673027 - Part 2: Update tzdata in ICU data files to 2020d. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D94605
2020-12-04 17:23:41 +00:00
Shane Caraveo
50b906c350 Bug 1677135 fix APP_SHUTDOWN for langpacks r=rpl,zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D97204
2020-11-19 20:18:17 +00:00
Simon Giesecke
dd80614fa0 Bug 1678062 - Remove unnecessary includes. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D97467

Depends on D96561
2020-11-23 16:12:02 +00:00
Simon Giesecke
e21b3c5809 Bug 1673931 - Move ElementCallbackType from Document.h to CustomElementRegistry.h.
Differential Revision: https://phabricator.services.mozilla.com/D95184

Depends on D95048
2020-11-23 16:08:11 +00:00
Simon Giesecke
9093e5e1bf Bug 1673424 - Fix includes around JS/StructuredClone.h.
Differential Revision: https://phabricator.services.mozilla.com/D94762

Depends on D93568
2020-11-23 16:06:52 +00:00
Simon Giesecke
971b645fe3 Bug 1660470 - Add missing include directives/forward declarations. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D87865
2020-11-23 16:21:38 +00:00
Sylvestre Ledru
bebb9f9181 Bug 1519636 - Reformat with clang-format-11 to the Google coding style r=andi,sg,geckoview-reviewers,snorp
It is bringing some minor changes

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D90795
2020-11-18 09:05:59 +00:00
Dan Minor
5bc2b7d62a Bug 1675789 - Do not used flipped characters for bidi pseudo-locale; r=zbraniecki
This switches to using accented characters without elongation for the bidi
pseudo-locale to improve readability. We received feedback that the
flipped characters were too difficult to read.

This also updates the test expectations.

Differential Revision: https://phabricator.services.mozilla.com/D96855
2020-11-13 13:23:12 +00:00
Dan Minor
74258d96fc Bug 1675789 - Update fluent-pseudo to 0.2.3; r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D96853
2020-11-13 13:23:02 +00:00
Bogdan Tara
944e17a779 Backed out 3 changesets (bug 1675789) for test_pseudo.js failures CLOSED TREE
Backed out changeset 96add4c0a255 (bug 1675789)
Backed out changeset 0e0fe4161436 (bug 1675789)
Backed out changeset dcd4e0412d54 (bug 1675789)
2020-11-13 04:21:54 +02:00
Dan Minor
a0c522b311 Bug 1675789 - Do not used flipped characters for bidi pseudo-locale; r=zbraniecki
This switches to using accented characters without elongation for the bidi
pseudo-locale to improve readability. We received feedback that the
flipped characters were too difficult to read.

Depends on D96854

Differential Revision: https://phabricator.services.mozilla.com/D96855
2020-11-12 21:30:01 +00:00
Dan Minor
8e9648faef Bug 1675789 - Update fluent-pseudo to 0.2.3; r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D96853
2020-11-12 21:28:49 +00:00
Makoto Kato
350116618e Bug 1667493 - Locale service shouldn't shutdown during normal shutting down phase. r=jfkthame
Although ICUUtils uses LocaleService, LocaleService will be shut down before
shut down observer.

DOM might use Locale Service by UnbindFromTree. So LocaleService should be
shut down by ShutdownPhase::ShutdownPostLastCycleCollection.

Differential Revision: https://phabricator.services.mozilla.com/D94944
2020-11-11 03:33:04 +00:00
Dan Minor
57441aa8cc Bug 1673054 - Migrate uses of intl.uidirection to intl.l10n.pseudo; r=Gijs,zbraniecki
This also removes pref overrides from methods like LocaleService::IsLocaleRTL or
IntlService.getLocaleInfo, because it doesn't really make sense to override the
result of checking an arbitrary locale, the relevant use case is overriding the
result for the current app locale.

Removal of the intl.uidirection pref completely will be done in a separate bug.

Differential Revision: https://phabricator.services.mozilla.com/D96235
2020-11-09 15:33:39 +00:00
Jonathan Kew
f8d43ea75c Bug 1675714 - Improve reliability of OSPreferences instance getters. r=lsalzman
Depends on D96201

Differential Revision: https://phabricator.services.mozilla.com/D96202
2020-11-07 17:29:48 +00:00
Sylvestre Ledru
9bfd4073b2 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D95434
2020-11-04 18:46:00 +00:00
Emilio Cobos Álvarez
d3853cf882 Bug 1675069 - Use nsDependentCSubstring rather than ptr+length in unic-langid-ffi. r=zbraniecki
Turns out we have `nsCStr` just for this already. I wrote this to
confirm it works as expected and it does, so...

The code doesn't deal with raw pointers anymore so we can remove the
helpers module and so on.

Differential Revision: https://phabricator.services.mozilla.com/D95866
2020-11-04 16:17:30 +00:00
Dan Minor
492a70088c Bug 1674212 - Add override pref for date time connector pattern; r=zbraniecki
This adds an override pref for the connector pattern used when combining dates
and times. It also fixes a test which was relying upon a hard-coded connector
pattern.

Differential Revision: https://phabricator.services.mozilla.com/D95278
2020-11-02 12:36:04 +00:00
Zibi Braniecki
40fc79d8ea Bug 1673539 - Multiply by 100 when using style percent in Fluent. r=dminor
Differential Revision: https://phabricator.services.mozilla.com/D94845
2020-10-29 16:21:54 +00:00
Jonathan Kew
9bf2742736 Bug 1672388 - Validate hyphenation data before freezing the shared memory, which will unmap it. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D94320
2020-10-29 12:27:49 +00:00
Makoto Kato
a147181ece Bug 1667613 - String bundle should return error after ClearOnShutdown is called. r=zbraniecki
`ClearOnShutdown` is called before shut down observer is notified. So when this
is notified, some services are already shut down.

So string bundle won't get the value since Locale service is shut down, so we
should return error like `SharedStringBundle` when shutting down status.

Differential Revision: https://phabricator.services.mozilla.com/D94922
2020-10-28 04:38:50 +00:00
Dan Minor
429ae74074 Bug 1426907 - Add OSPreferences::OverrideDateTimePattern method; r=zbraniecki
This new method allows for the user to override the long and short date and
time patterns by prefs. If no overrides are set or it fails while processing
the prefs, it will fallback to the existing methods for determining the patterns.
Since the user may have only overriden one of date or time, it is necessary to
be able to look up the other separately and combine the results.

This adds a prefix callback that watches the new prefs and flushes the cache if
they change. Otherwise, the user would have to restart the browser to see the
results of changing a pref, and would make testing more difficult. Unregistering
this callback required changes to the destructor, which was previously defined
separately on each operating system. A new RemoveObservers method has been added
to handle OS specific cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D94433
2020-10-27 20:41:58 +00:00
Dan Minor
686b723d0d Bug 1426907 - Update OSPreferences API to use UTF-8 rather than UTF-16; r=zbraniecki
We'll want to use UTF-8 when we switch to using ICU4x because Rust is all UTF-8. We
can switch the external facing APIs now, and update the internal implementations
later.

Differential Revision: https://phabricator.services.mozilla.com/D94850
2020-10-27 20:45:19 +00:00
Dan Minor
3790450033 Bug 1426907 - Make OSPreferences::GetPatternForSkeleton public and use in DateTimeFormat; r=zbraniecki
This allows for the removal of duplicated code between DateTimeFormat and
OSPreferences.

Differential Revision: https://phabricator.services.mozilla.com/D94432
2020-10-27 20:45:17 +00:00