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

60 Коммитов

Автор SHA1 Сообщение Дата
Sylvestre Ledru c5ea8090c4 Bug 1622328 - L10nRegistry.jsm: Add the license r=fluent-reviewers,zbraniecki
Depends on D66807

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

--HG--
extra : moz-landing-system : lando
2020-03-13 19:10:53 +00:00
Zibi Braniecki 3fa4afd67f Bug 1621024 - Skip reporting errors if the file is not found in the L10nRegistry.loadSync. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D66538

--HG--
extra : moz-landing-system : lando
2020-03-16 15:49:58 +00:00
Zibi Braniecki 3f8c67d7fd Bug 1560038 - Switch uses of FluentBundle to use fluent-rs. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57403

--HG--
extra : moz-landing-system : lando
2020-03-14 22:14:13 +00:00
Razvan Maries a34f5e0ded Backed out 2 changesets (bug 1560038) for perma failures on browser_application_panel_list-single-worker.js. CLOSED TREE
Backed out changeset 7cd88f40fc85 (bug 1560038)
Backed out changeset 54dbe282c9ac (bug 1560038)
2020-03-14 00:43:41 +02:00
Zibi Braniecki 44eca5f333 Bug 1560038 - Switch uses of FluentBundle to use fluent-rs. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57403

--HG--
extra : moz-landing-system : lando
2020-03-11 23:29:05 +00:00
Mihai Alexandru Michis a3ed8c38b3 Backed out changeset 396cfd215808 (bug 1560038) for causing dt failures in browser_application_panel_list-single-worker.js
CLOSED TREE
2020-03-12 00:32:24 +02:00
Zibi Braniecki 7c466415ee Bug 1560038 - Switch uses of FluentBundle to use fluent-rs. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57403

--HG--
extra : moz-landing-system : lando
2020-03-11 15:42:07 +00:00
Daniel Varga a2cbf61a81 Backed out 9 changesets (bug 1560038) for causing build bustage
CLOSED TREE

Backed out changeset 12069dae9b8d (bug 1560038)
Backed out changeset a0845cf79487 (bug 1560038)
Backed out changeset dc2406d01a63 (bug 1560038)
Backed out changeset 1b11616a5ee5 (bug 1560038)
Backed out changeset 06cdc27a39a7 (bug 1560038)
Backed out changeset a390456d9d26 (bug 1560038)
Backed out changeset 7e3d839a3e9d (bug 1560038)
Backed out changeset 0678db762fed (bug 1560038)
Backed out changeset 3b9b16532bf3 (bug 1560038)
2020-03-11 04:53:10 +02:00
Zibi Braniecki 4d2733ee86 Bug 1560038 - Switch uses of FluentBundle to use fluent-rs.
Differential Revision: https://phabricator.services.mozilla.com/D57403

Depends on D61048

--HG--
extra : rebase_source : 0be62fa98f0a91274c96a509eeafceb6da667894
2020-03-10 20:03:59 +02:00
Daniel Varga 22ab1c2ce6 Backed out 9 changesets (bug 1560038) for causing build bustages.
CLOSED TREE

Backed out changeset 350df98095f8 (bug 1560038)
Backed out changeset 56dd15fbeced (bug 1560038)
Backed out changeset 570aa7aaceb5 (bug 1560038)
Backed out changeset fc4da4a1c192 (bug 1560038)
Backed out changeset 7c69b0e5fd93 (bug 1560038)
Backed out changeset 1caf41590caf (bug 1560038)
Backed out changeset b4bf28bec6a8 (bug 1560038)
Backed out changeset e923de659c2b (bug 1560038)
Backed out changeset 7f1be4424898 (bug 1560038)
2020-03-10 22:22:40 +02:00
Zibi Braniecki e61d360bfc Bug 1560038 - Switch uses of FluentBundle to use fluent-rs. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D57403

--HG--
extra : moz-landing-system : lando
2020-03-10 18:03:59 +00:00
Zibi Braniecki 3d1443faf0 Bug 1613569 - Deduplicate resources when generating bundles. r=stas
Differential Revision: https://phabricator.services.mozilla.com/D62621

--HG--
extra : moz-landing-system : lando
2020-02-13 18:41:25 +00:00
Brian Grinstead 3d2d2d0ea7 Bug 1608281 - Automated rewrite away from reading properties on the global `this` in JSM files - round 1 r=mossop
This patch was generated with a script. It doesn't include all files:

- Files that use the preprocessor or fail to parse are skipped
- Files that are loaded as JSMs but don't use the .jsm extension are skipped (those will be renamed in Bug 1609269)

It was generated with the following command using d855222aa2/no-this-property-read.js:

```
hg revert --all &&
cp .gitignore .rgignore &&
rg --files-without-match -g '*.jsm' '^#endif|^#include|^#filter' | jscodeshift --stdin --transform ~/Code/jsm-rewrites/no-this-property-read.js --ignore-pattern ./mobile/android/modules/Sanitizer.jsm --ignore-pattern ./js/xpconnect/tests/unit/syntax_error.jsm &&
./mach eslint `hg st | rg '^M ' | sed 's/^M //'`
```

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

--HG--
extra : moz-landing-system : lando
2020-01-29 21:50:04 +00:00
Zibi Braniecki 2627475cc8 Bug 1605489 - Do not report missing files from L10nRegistry.loadSync to the console. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D58152

--HG--
extra : moz-landing-system : lando
2019-12-27 16:05:26 +00:00
Dave Townsend 1c67b00d98 Bug 1586216: Fallback to a synchronous channel load if the url preloader cannot load the ftl file. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D48726

--HG--
extra : moz-landing-system : lando
2019-10-09 17:50:33 +00:00
Zibi Braniecki b87d8246a9 Bug 1501886 - Migrate menubar to Fluent. r=fluent-reviewers,Pike,flod
Differential Revision: https://phabricator.services.mozilla.com/D34379

--HG--
extra : moz-landing-system : lando
2019-08-02 16:07:44 +00:00
Staś Małolepszy 157da38e6c Bug 1568914 - Update Fluent to @fluent/bundle 0.14.0 r=zbraniecki,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D39400

--HG--
extra : moz-landing-system : lando
2019-07-30 13:21:59 +00:00
Zibi Braniecki b0ba25f8b9 Bug 1558602 - Allow DocumentL10n to use LocalizationSync. r=smaug,Pike
Differential Revision: https://phabricator.services.mozilla.com/D34584

--HG--
extra : moz-landing-system : lando
2019-07-01 17:56:57 +00:00
Zibi Braniecki b4932e4709 Bug 1555662 - Register L10nRegistry sources using categories. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D34227

--HG--
extra : moz-landing-system : lando
2019-06-08 04:37:31 +00:00
Andreea Pavel ab7673faaa Backed out 2 changesets (bug 1555662) for multiple bc failures e.g browser_panelUINotifications_multiWindow.js on a CLOSED TREE
Backed out changeset 84c57f9dda5b (bug 1555662)
Backed out changeset ede8b931ee0d (bug 1555662)
2019-06-08 03:25:28 +03:00
Zibi Braniecki 6ca89e400f Bug 1555662 - Register L10nRegistry sources using categories. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D34227

--HG--
extra : moz-landing-system : lando
2019-06-07 20:11:00 +00:00
Zibi Braniecki bf768d3bb3 Bug 1545312 - Make L10nRegistry handle removed sources. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D28270

--HG--
extra : moz-landing-system : lando
2019-04-24 20:36:00 +00:00
Gijs Kruitbosch 87354fdcfd Bug 1526925 - add a `hasSource` method to L10nRegistry to determine if a source is known, r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D19360

--HG--
extra : moz-landing-system : lando
2019-02-11 14:56:09 +00:00
Kris Maglione e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

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

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Zibi Braniecki ef5c7af9be Bug 1509609 - Provide a sync version of generateBundles for L10nregistry. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D13166

--HG--
extra : moz-landing-system : lando
2019-01-11 00:19:37 +00:00
Csoregi Natalia d45a83305b Bug 1488973 - Followup for eslint failure. CLOSED TREE
--HG--
extra : amend_source : 608437e414f153580a51c5b5b85b7478a8b11f60
2018-10-24 21:56:27 +03:00
Zibi Braniecki 161f499d5e Bug 1488973: Register locale sources in all processes. r=mossop
Depends on D7961

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

--HG--
extra : moz-landing-system : lando
2018-10-24 17:42:09 +00:00
Narcis Beleuzu b7b79b2538 Backed out 3 changesets (bug 1488973) for causing TV failures on browser_resource_uri.js
Backed out changeset 6eab8a1b17ce (bug 1488973)
Backed out changeset c06b2c594294 (bug 1488973)
Backed out changeset 819df51e3083 (bug 1488973)
2018-10-24 10:49:10 +03:00
Zibi Braniecki 16df4be7a6 Bug 1488973: Register locale sources in all processes. r=mossop
Depends on D7961

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

--HG--
extra : moz-landing-system : lando
2018-10-23 18:59:19 +00:00
Zibi Braniecki 56bbe2cfb3 Bug 1498960 - Update Fluent in Gecko to 0.9. r=stas
Differential Revision: https://phabricator.services.mozilla.com/D8689

--HG--
rename : intl/l10n/MessageContext.jsm => intl/l10n/Fluent.jsm
extra : moz-landing-system : lando
2018-10-20 16:35:50 +00:00
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Zibi Braniecki 83ea94f5ba Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

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

--HG--
extra : moz-landing-system : lando
2018-09-21 15:30:37 +00:00
Zibi Braniecki a7959b6272 Bug 1483038 - Optimize L10nRegistry generator to early exit on missing resources. r=mossop
Optimize L10nRegistry generator to early exit on missing resources.

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

--HG--
extra : moz-landing-system : lando
2018-09-04 16:57:52 +00:00
shindli 72702be2ca Backed out changeset 6cd626758796 (bug 1483038) for ES lint failure in L10nRegistry 2018-09-04 19:45:06 +03:00
Zibi Braniecki d5b262e43d Bug 1483038 - Optimize L10nRegistry generator to early exit on missing resources. r=mossop
Optimize L10nRegistry generator to early exit on missing resources.

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

--HG--
extra : moz-landing-system : lando
2018-08-30 18:00:35 +00: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
Gurzau Raul 1e95ba963d Backed out changeset 24a8cf2131d1 (bug 1384236) for failing at extensions/test/xpcshell/test_webextension_langpack.js on a CLOSED TREE 2018-07-13 20:02:32 +03:00
Zibi Braniecki cf5e5747be 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 : efad7ec156baea0924e848acb29b62a1fe0aff40
2018-06-22 12:03:24 -07: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
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
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
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
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
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 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 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
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