mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-27 18:01:44 -10:00
The build telemetry code attempts to filter paths to avoid PII from usernames and other things. It does this by converting every commandline argument to an absolute path and then making them relative to topsrcdir or topobjdir and omitting any that fail. This meant that running a mach command with a cwd outside of the topsrcdir or objdir would omit all arguments since they were converted to absolute paths from the cwd. This change fixes this by adding the cwd to the list of paths used to create relative paths. Additionally we add the user's home directory to that list to try to avoid usernames sneaking through. Finally, instead of simply removing these path prefixes, we replace them with sigils: $topsrcdir, $objdir, $HOME. Differential Revision: https://phabricator.services.mozilla.com/D11174
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