зеркало из https://github.com/mozilla/gecko-dev.git
411a529019
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 |
||
---|---|---|
.. | ||
docs | ||
gdbpp/gdbpp | ||
l10n | ||
lldbutils | ||
mach | ||
mozboot | ||
mozbuild | ||
mozlint | ||
mozperftest | ||
mozrelease | ||
mozterm | ||
mozversioncontrol | ||
sites | ||
README | ||
mach_commands.py | ||
moz.build |
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