gecko-dev/python
Eemeli Aro ed0c600d94 Bug 1734217 - Migrate aboutNetError from DTD to Fluent. r=fluent-reviewers,prathiksha,flod
To support and enable the migration, quite a bit of refactoring is needed.

Many of the localised error messages are in fact fragments of HTML, including messages with nesting not supported by Fluent. In the FTL, these have each been split up into multiple messages using a custom migration transform (included directly in the script). This allows for localisers to work with the messages without HTML syntax, but does require the messages' structures to be maintained elsewhere. To that effect, the JS file represents messages as arrays of `[tagName, l10nId, l10nArgs]` tuples from which it builds the messages' elements. This fixex bug 1621895.

Though extensive, the refactoring done here is for the most part limited to what's required by the Fluent migration. For instance, not all issues raised in bug 1722896 are resolved here. Places where the structure was sufficiently messy to have introduced bugs or dead code have been cleaned up a bit, though.

This variant of netError that's used by the browser is not itself overridden by anyone else, which allows for it to be tackled first and independently of the docshell and mobile variants. As a part of its content is still passed in as a query parameter, it's possible that later refactors of the rest of the netError system will allow for further clean-up here.

Differential Revision: https://phabricator.services.mozilla.com/D155951
2022-10-07 18:40:27 +00:00
..
devtools/migrate-l10n Bug 1753413 - fx doc: Remove whitespaces, trailing lines & windows CR r=andi,perftest-reviewers,sparky 2022-02-03 18:34:58 +00:00
docs Bug 1659593: Make ./mach vendor python cross-platform r=ahal 2022-04-07 18:00:28 +00:00
gdbpp/gdbpp Bug 1760161 - lint fix. a=testonly. CLOSED TREE 2022-06-01 21:19:40 +03:00
l10n Bug 1734217 - Migrate aboutNetError from DTD to Fluent. r=fluent-reviewers,prathiksha,flod 2022-10-07 18:40:27 +00:00
lldbutils Bug 1772955 - Remove broken ns[Int]Region lldb pretty printers. r=mstange 2022-06-07 17:16:04 +00:00
mach Bug 1793828 - Always print the reason why the site is not 'up-to-date' r=firefox-build-system-reviewers,nalexander 2022-10-06 18:18:32 +00:00
mozboot Bug 1779931 - Make installing gconf2-devel during openSUSE bootstrap optional r=ahochheiden 2022-10-04 16:38:55 +00:00
mozbuild Bug 1741379 - set 'Mach Vendor & Updatebot' as Bugzilla component for related files. r=tjr 2022-09-30 02:04:59 +00:00
mozlint Bug 1790000 - On Automation mozlint output file handler should be closed. r=marco 2022-09-09 12:02:13 +00:00
mozperftest Bug 1789229 - Add side-by-side docs r=perftest-reviewers,sparky 2022-09-23 14:33:21 +00:00
mozrelease Bug 1777414 - Replace all uses of distutils.version.LooseVersion with looseversion.LooseVersion r=firefox-build-system-reviewers,glandium 2022-08-26 23:05:25 +00:00
mozterm
mozversioncontrol Bug 1777414 - Replace all uses of distutils.version.LooseVersion with looseversion.LooseVersion r=firefox-build-system-reviewers,glandium 2022-08-26 23:05:25 +00:00
sites Backed out changeset a5df97f61fec (bug 1793786) for causing build bustages. CLOSED TREE 2022-10-07 16:35:21 +03:00
mach_commands.py Bug 1717104: Activate virtualenv before running command r=perftest-reviewers,ahal,AlexandruIonescu 2022-03-23 14:50:45 +00:00
moz.build Bug 1724274: Move virtualenv dependency manifests to python/virtualenvs r=ahal 2022-03-24 14:04:34 +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