Граф коммитов

5028 Коммитов

Автор SHA1 Сообщение Дата
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
Dan Minor df2b7bf080 Bug 1426907 - Call OSPreferences::GetDateTimePattern once in FormatUDateTime; r=zbraniecki
Now that we've removed a lot of the special cases we were supporting in the date
and time format selectors, we can call GetDateTimePattern once with the two
selectors instead of calling it twice and combining the results. This will
simplifies the code and will make it easier to handle overriding patterns using
prefs.

A side effect of this change is that on OS X, you get a slightly different result
if you ask for the long format date and time all at once than if you ask for the
two separately and then combine them. The test expectations have been updated
accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D94431
2020-10-27 20:43:25 +00:00
Dan Minor f66c096d75 Bug 1426907 - Rework DateTimeFormat gtests to not rely on hard-coded connector patterns; r=zbraniecki
The connector patterns can change over time, we should instead check for the date time components
that we expect to be present.

Differential Revision: https://phabricator.services.mozilla.com/D94849
2020-10-27 20:39:57 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Makoto Kato fdfea00747 Bug 1672269 - NextWord shouldn't return empty. r=jfkthame
After landing bug 425915, we use NextWord instead of BreakInBetween.
NextWord is possible to return empty string (offset equals to current
position). So it shouldn't return empty string.

Differential Revision: https://phabricator.services.mozilla.com/D94266
2020-10-21 13:10:29 +00:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Dan Glastonbury f5c6d9e6a5 Bug 1660393 - P3: Implement load_sync and load_async functions for L10n. r=zbraniecki,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D89695
2020-10-21 05:48:10 +00:00
Dan Minor a67119a8ad Bug 1669573 - Replace kDateFormatYearMonth/kDateFormatYearMonthLong with FormatDateTime; r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D93013
2020-10-15 12:19:42 +00:00
Dan Minor cc0579260c Bug 1669573 - Add DataTimeFormat::FormatDateTime; r=zbraniecki
This adds a FormatDateTime method that takes a skeleton as an argument and
returns the localized date and time according to the skeleton. In the future,
we'll add an overload that allows taking an DateTimeOptions property bag, but
for now, this will provide enough functionality to allow us to remove the
kDateFormatYearMonth and kDateFormatYearMonthLong selectors as well as the code
for handling skeletons from FormatPRExplodedTime.

Differential Revision: https://phabricator.services.mozilla.com/D93012
2020-10-15 12:21:52 +00:00
Dan Minor c7c8e3f274 Bug 1669573 - Rename kTimeFormatSeconds and kTimeFormatNoSeconds; r=zbraniecki
This renames kTimeFormatSeconds to kTimeFormatLong and kTimeFormatNoSeconds to
kTimeFormatShort. This is consistent with the naming used for date format
selectors.

Differential Revision: https://phabricator.services.mozilla.com/D93011
2020-10-15 12:20:15 +00:00
Dan Minor 9cd711db66 Bug 1669573 - Replace kDateFormatMonthLong/kDateFormatWeekday with GetCalendarSymbol; r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D93010
2020-10-15 12:19:52 +00:00
Dan Minor da71b8a478 Bug 1669573 - Call DeleteCache when changing locale in TestDateTimeFormat; r=zbraniecki
The formatters in mFormatCache are only valid for the locale in which they were
created. Currently the tests change mLocale directly but leave the cache in
place which can lead to incorrect test results depending upon which tests are
executed. This is not a problem outside of the tests because mLocale is normally
only set once during the call to Initialize() which will not change the current
locale once it is set.

Differential Revision: https://phabricator.services.mozilla.com/D93009
2020-10-15 12:19:47 +00:00
Dan Minor 18cf8b1d11 Bug 1669573 - Add DataTimeFormat::GetCalendarSymbol; r=zbraniecki
This adds a method to get the calendar symbol for a month or a weekday in long
or short form. We'll add more fields and styles in the future, the current patch
provides enough functionality to replace the selectors for kDateFormatMonthLong
and kDateFormatWeekday, which are currently used to retrieve display names by
calling FormatPRExplodedTime.

Differential Revision: https://phabricator.services.mozilla.com/D93008
2020-10-15 12:19:45 +00:00
Jonathan Kew a85cb4bb2b Bug 1668253 - Convert hyphenation from ipc::SharedMemoryBasic to base::SharedMemory, and freeze blocks before sharing to content processes. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D91945
2020-10-12 10:24:06 +00:00
Sylvestre Ledru 0bb0c0e4cf Bug 1617369 - Reformat recent rust changes with rustfmt r=emilio,webdriver-reviewers,necko-reviewers,dragana,whimboo
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D92460
2020-10-06 16:12:13 +00:00
Jonathan Kew fa5281d662 Bug 1667192 - patch 3 - For Android, package the uncompiled versions of hyphenation files. r=heycam
This reduces the APK size by about 1.4MB.

Differential Revision: https://phabricator.services.mozilla.com/D91411
2020-09-30 12:52:40 +00:00
Jonathan Kew cd89a36f08 Bug 1667192 - patch 2 - Update nsHyphenator to support loading either precompiled or uncompiled data. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D91410
2020-09-30 12:52:22 +00:00
Zibi Braniecki 5bbfa14bf4 Bug 1667307 - Update fluent-rs to 0.13. r=kamidphish
Differential Revision: https://lando.services.mozilla.com/D91390/
2020-09-27 02:04:35 +02:00
Simon Giesecke de7bab0f06 Bug 1650145 - Replace all value uses of Empty[C]String by 0-length _ns literals. r=froydnj,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82325
2020-09-23 15:17:15 +00:00
Kris Maglione afcc0476d6 Bug 1663747: Part 1 - Fix sCurrentShutdownPhase and add PastShutdownPhase() API. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D89809
2020-09-22 17:13:27 +00:00
Sylvestre Ledru 264cb8dba5 no bug - fx doc - Fix some rst warnings
Depends on D90832

Differential Revision: https://phabricator.services.mozilla.com/D90864
2020-09-22 06:26:42 +00:00
Mihai Alexandru Michis a9f468308c Backed out 2 changesets (bug 1663747) for causing xpcshell failures in ThrottledEventQueue.
CLOSED TREE

Backed out changeset 643aa6baf458 (bug 1663747)
Backed out changeset 491472fe44f4 (bug 1663747)
2020-09-22 03:54:59 +03:00