gecko-dev/python
Eemeli Aro 411a529019 Bug 1793557 - Convert Extension.jsm strings to Fluent. r=mkmelin,geckoview-reviewers,robwu,flod,owlish
This changes the arguments of `ExtensionData.formatPermissionStrings()`.
The second `bundle` arg is dropped, and a `localization` option is added.
Call sites in m-c are updated, but this will also need a matching update for Thunderbird.
A few Thunderbird test cases will also need to be updated,
as they currently point to a non-existing localization file paths
"messenger/addons.ftl" and "messenger/addonPermissions.ftl".

As discussed at the addon workweek,
the Fluent l10n keys for extension permissions match the pattern:

    webext-perms-description-{name}

where `{name}` is the permission's sanitized name.
A fluent-lint exception is added for the capitalization of these generated names.
To allow for message updates and subsequent l10n identifier updates,
a `PERMISSION_L10N_ID_OVERRIDES` map is provided.

Because Fluent localization keys are not enumerable
and attempting to format a missing key is an error,
the `PERMISSIONS_WITH_MESSAGE` set must be kept in sync with message updates.

Differential Revision: https://phabricator.services.mozilla.com/D158663
2023-05-23 12:00:01 +00:00
..
docs Bug 1830069 - Fix reference to old site file name in docs, r=ahochheiden 2023-04-26 18:25:15 +00:00
gdbpp/gdbpp Bug 1811850 - [lint] Fix ruff errors resulting from new configuration, r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,firefox-build-system-reviewers,ahochheiden 2023-03-20 13:06:28 +00:00
l10n Bug 1793557 - Convert Extension.jsm strings to Fluent. r=mkmelin,geckoview-reviewers,robwu,flod,owlish 2023-05-23 12:00:01 +00:00
lldbutils Bug 1811850 - [lint] Replace isort linter with ruff, r=taskgraph-reviewers,linter-reviewers,marco,jcristau 2023-03-20 13:06:27 +00:00
mach Bug 1827811 - Avoid logging errors when dealing with records with no params. r=ahal 2023-04-13 20:15:06 +00:00
mozboot Bug 1798746 - Ensure checking for mercurial/git only if its a hg/git clone, not release source r=ahochheiden 2023-05-09 16:33:36 +00:00
mozbuild Bug 1833958 - Upgrade minimum supported Clang version to 7. r=firefox-build-system-reviewers,sergesanspaille 2023-05-22 23:07:29 +00:00
mozlint Bug 1757373 - Enable linting to run in parallel when '.' is specified as the path. r=linter-reviewers,ahal 2023-05-09 13:11:21 +00:00
mozperftest Bug 1827609 - Set new platform/test names correctly when using MWU to detect changes. r=perftest-reviewers,kshampur 2023-04-18 17:05:20 +00:00
mozrelease Bug 1811850 - [lint] Fix ruff errors resulting from new configuration, r=webdriver-reviewers,perftest-reviewers,whimboo,sparky,firefox-build-system-reviewers,ahochheiden 2023-03-20 13:06:28 +00:00
mozterm Bug 1811850 - [lint] Replace isort linter with ruff, r=taskgraph-reviewers,linter-reviewers,marco,jcristau 2023-03-20 13:06:27 +00:00
mozversioncontrol Bug 1826162 - mach try perf gitcinnibar issues. r=perftest-reviewers,kshampur 2023-05-15 16:43:18 +00:00
sites Bug 1812539 - Drop vendored pytoml as unused. r=glandium 2023-05-23 10:58:34 +00:00
README
mach_commands.py Bug 1801836 - Remove no longer necessary 'from __future__' imports under python/. r=linter-reviewers,glandium,ahal DONTBUILD 2022-12-23 01:26:15 +00:00
moz.build Bug 1806642 - update in-tree references to 'Lint and Formatting' bugzilla component. r=Standard8 2022-12-21 14:38:47 +00:00

README

This directory contains common Python code.

The basic rule is that if Python code is cross-module (that's "module" in the
Mozilla meaning - as in "module ownership") and is MPL-compatible, it should
go here.

What should not go here:

* Vendored python modules (use third_party/python instead)
* Python that is not MPL-compatible (see other-licenses/)
* Python that has good reason to remain close to its "owning" (Mozilla)
  module (e.g. it is only being consumed from there).

Historical information can be found at
https://bugzilla.mozilla.org/show_bug.cgi?id=775243
https://bugzilla.mozilla.org/show_bug.cgi?id=1346025