Commit Graph

8540 Commits

Author SHA1 Message Date
Mike Hommey
4d356bb4fc Bug 1840533 - Forbid @imports("__builtin__"). r=firefox-build-system-reviewers,andi,sergesanspaille, a=test-only DONTBUILD
The last use of importing the whole __builtin__ module was removed in
bug 1264831... 7 years ago.

Now that it actually doesn't work anymore with recent releases of
cpython, we might as well kill it for good.

Differential Revision: https://phabricator.services.mozilla.com/D182140
2023-06-29 08:22:18 +00:00
Mike Hommey
dfa753e451 Bug 1839263 - Don't derive assertRaisesFromLine from assertRaises. r=firefox-build-system-reviewers,ahochheiden, a=test-only DONTBUILD
In python 3.11 (maybe also 3.10, I haven't tested that version ; 3.9 was
definitely different), by the time the context manager comes back in our
assertRaisesFromLine, the traceback is not available anymore (or yet,
I'm not entirely sure which way it does) to inspect and check the line
numbers we want to check.

And while assertRaises exposes the thrown exception in its `exception`
attribute, it also resets the traceback associated with it, so we can't
find it there either.

So instead, we implement our own context manager for
assertRaisesFromLine such that we can access that traceback.

Differential Revision: https://phabricator.services.mozilla.com/D181425
2023-06-22 07:30:02 +00:00
Mike Hommey
0f09a13274 Bug 1839263 - Fix python configure lint on python >= 3.10. r=firefox-build-system-reviewers,ahochheiden,sergesanspaille, a=test-only DONTBUILD
Python 3.10 added some more arguments to the CodeTypes constructor. It
also changed co_lnotab to co_linetables.

We were using co_lnotab to simulate a function with a def at a specific
line and a raise at a specific other line. I'm not sure how I ended up
with this particular requirement (this may have been related to python 2
still being used back then), but as of now, it doesn't seem we need the
def to be at a specific location, so we can avoid needing to generate
a co_linetables/co_lnotab, relying instead on the raise expression being
on the co_firstlineno+1 in the thrower function.

As for the extra arguments, it turns out python 3.8 also introduced a
CodeType.replace method that can be used to derive a CodeType object
from another, which is certainly simpler than calling its construtor
with the right set of arguments.

Differential Revision: https://phabricator.services.mozilla.com/D181424
2023-06-22 07:30:01 +00:00
Harshit Sohaney
2541acb6bd Bug 1827252 - updating aioquic version to 0.9.21. r=jgraham, a=test-only 2023-07-27 14:05:48 +00:00
serge-sans-paille
12ed43db2f Bug 1858062 - Remove reference to distutils in mozboot a=pascalc
distutils is no longer available in Python 3.12, which means we cannot
require it on bootstrap, otherwise we cannot bootstrap from Py 3.12.

We already require setuptools as part of mach's requirements, so it's
fine to depend on setuptools elsewhere.

Original Revision: https://phabricator.services.mozilla.com/D190537

Differential Revision: https://phabricator.services.mozilla.com/D200113
2024-02-05 15:24:03 +00:00
serge-sans-paille
4d44eee907 Bug 1858065 - Replace distutils' StrictVersion a=pascalc
distutils have been removed from Python 3.12, so replace it:

Sometimes using packaging's Version, sometimes providing our own in the
case of mozrelease/versions.py. Add more tests for the latter.

Original Revision: https://phabricator.services.mozilla.com/D190540

Differential Revision: https://phabricator.services.mozilla.com/D200111
2024-02-05 15:24:02 +00:00
ahochheiden
68f94abcdc Bug 1843902 - Vendor PyYAML at version 6.0.1 a=pascalc
There's a `Cython` issue (https://github.com/yaml/pyyaml/issues/601) with `PyYAML` that breaks our `./mach vendor python` in versions of PyYAML `>5.3.1` and `=<6.0`. This issue has been resolved with `PyYAML` version `6.0.1`, and we can just safely upgrade to it (rather than downgrading to `5.3.1` (which has other issues).

Original Revision: https://phabricator.services.mozilla.com/D183818

Differential Revision: https://phabricator.services.mozilla.com/D200108
2024-02-05 15:23:59 +00:00
serge-sans-paille
4c102b5858 Bug 1857516 - Get rid of deprecated imp python module in favor of importlib CLOSED TREE a=pascalc
Following the official migration guide from
https://docs.python.org/3/whatsnew/3.12.html#imp

Original Revision: https://phabricator.services.mozilla.com/D190465

Differential Revision: https://phabricator.services.mozilla.com/D200107
2024-02-05 15:23:59 +00:00
Mike Conley
d61a870e70 Bug 1867346 - Tweak strings for ASRouter spotlight message to encourage users without FxA accounts to create one. r=fluent-reviewers,flod, a=dmeehan, l10n=flod
Differential Revision: https://phabricator.services.mozilla.com/D195013
2023-11-29 19:50:07 +00:00
Mike Hommey
145b9fa06f Bug 1868680 - Stop prewarming the ARM AVD. r=geckoview-reviewers,owlish a=release DONTBUILD
prewarming the AVDs was done for CI, where AVDs are used only once in
each task using them, and the cost of first use is high. Prewarming
reduces that overhead.

However, the ARM AVD is not used on CI (anymore?), so we don't need
them prewarmed. This unblocks the situation wrt the failure to run
the emulator on CI, while not addressing the underlying issues, so that
CoT keys can be rotated without waiting for the full situation to be
resolved.

Differential Revision: https://phabricator.services.mozilla.com/D195820
2023-12-12 22:15:37 +00:00
donal meehan
9d31023f3d Bug 1866295 - fix lint failure for ESR115 a=me 2024-01-03 13:09:34 -05:00
Mike Conley
c88ff4a286 Bug 1866295 - Land new strings for ASRouter spotlight message to encourage users without FxA accounts to create one. a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D194553

Differential Revision: https://phabricator.services.mozilla.com/D197601
2024-01-03 17:33:43 +00:00
Mike Hommey
0e946107e7 Bug 1869944 - Relax the version of zstandard allowed by the mach site. r=ahochheiden a=release
Differential Revision: https://phabricator.services.mozilla.com/D196378
2023-12-14 02:14:48 +00:00
Steve Fink
63de277625 Bug 1853252 - Allow running mach bootstrap from more subdirs. r=ahochheiden, a=NPOTB
Differential Revision: https://phabricator.services.mozilla.com/D188302
2023-09-18 19:13:38 +00:00
Mike Hommey
cdbdd31a56 Bug 1749856 - Use GeneratedFile for rlbox.wasm.c. r=firefox-build-system-reviewers,andi a=RyanVM
This moves the creation of both rlbox.wasm.c and rlbox.wasm.h to
pre-compile, which allows static-analysis to create both files (but more
importantly the .h) without also compiling rlbox.wasm.c, which takes
forever.

Differential Revision: https://phabricator.services.mozilla.com/D180173
2023-06-07 07:28:31 +00:00
Mike Hommey
9a2abc56b6 Bug 1841585 - Generate webrtc moz.build snippets for mipsel and mips64el. r=webrtc-reviewers,mjf a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D182702
2023-07-07 11:02:14 +00:00
Makoto Kato
733077990e Bug 1830461 - Allow to build webrtc on Linux/riscv64. r=webrtc-reviewers,ng,mjf,glandium a=RyanVM
If `use_sysroot` is false (see libwebrtc/build/config/sysroot.gni. true if
Google's server has sysroot image), webrtc will causes build error since
`rtc_use_pipewire` is false. But since `rtc_use_x11_extensions` is true,
we should include some dirs/files in source files.

So I add more MOZ_X11 condition for `rtc_use_x11_extensions`.

Differential Revision: https://phabricator.services.mozilla.com/D176752
2023-06-28 06:36:58 +00:00
Heitor Neiva
035cee762d Bug 1836078 - Update taskgraph to support comm-esr115 r=rjl,releng-reviewers,taskgraph-reviewers,jcristau, a=dmeehan
Depends on D180026

Differential Revision: https://phabricator.services.mozilla.com/D180027
2023-06-13 15:22:17 +00:00
Heitor Neiva
9cb1264c43 Bug 1836078 - Update gecko taskgraph to support ESR115 r=releng-reviewers,taskgraph-reviewers,jcristau, a=release
Differential Revision: https://phabricator.services.mozilla.com/D180026
2023-06-09 20:58:21 +00:00
Valentin Gosu
50fdf1286d Bug 1835805 - Remove odoh code r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D179456
2023-06-02 12:49:33 +00:00
Kelly Cochrane
19abba01c7 Bug 1832668 - Add new side navigation component to Firefox View Next page r=fxview-reviewers,fluent-reviewers,flod,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D179215
2023-06-02 12:39:50 +00:00
Mike Hommey
e97e5246fd Bug 1834436 - Upgrade minimum supported GCC version to 8. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178736
2023-06-01 20:09:19 +00:00
Mike Hommey
b16e80067e Bug 1835431 - Parallelize pbzx decompression. r=gsvelto
For larger packages (e.g. Xcode), it makes a big difference.

Differential Revision: https://phabricator.services.mozilla.com/D179283
2023-05-31 22:24:34 +00:00
Mike Hommey
c6281d6814 Bug 1835431 - Handle hardlinks when unpacking a SDK. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D179281
2023-05-31 22:24:34 +00:00
Rob Wu
fcdd79b348 Bug 1835559 - Ensure that text content survives translation r=application-update-reviewers,flod,fluent-reviewers,nalexander,settings-reviewers,Gijs
When an element is re-translated, the textContent is currently dropped.
To avoid that, make it an explicit part of the message.

This requires changing the l10n message ID.
Ideally, the message ID wouldn't change, but that is not possible until
the content can be preserved as a feature, i.e.
https://github.com/projectfluent/fluent.js/issues/169

Differential Revision: https://phabricator.services.mozilla.com/D179323
2023-05-31 19:58:55 +00:00
Cosmin Sabou
8dd0d2bebe Backed out changeset 81758aba6ab3 (bug 1835559) for causing bc failures on browser_aboutDialog_fc_downloadOptIn.js. CLOSED TREE 2023-05-31 22:28:23 +03:00
Rob Wu
910882d447 Bug 1835559 - Ensure that text content survives translation r=application-update-reviewers,flod,fluent-reviewers,nalexander,settings-reviewers,Gijs
When an element is re-translated, the textContent is currently dropped.
To avoid that, make it an explicit part of the message.

This requires changing the l10n message ID.
Ideally, the message ID wouldn't change, but that is not possible until
the content can be preserved as a feature, i.e.
https://github.com/projectfluent/fluent.js/issues/169

Differential Revision: https://phabricator.services.mozilla.com/D179323
2023-05-31 15:43:24 +00:00
Natalia Csoregi
448ccac0b9 Backed out changeset af645c9220f1 (bug 1835805) for causing bustage on DNSPacket.cpp. CLOSED TREE 2023-05-31 18:52:13 +03:00
Valentin Gosu
7ba32109b0 Bug 1835805 - Remove odoh code r=necko-reviewers,jesup
Differential Revision: https://phabricator.services.mozilla.com/D179456
2023-05-31 15:05:06 +00:00
Tooru Fujisawa
2fa61e06de Bug 1834673 - Part 2: Replace incompatible characters in LCOV error reporting. r=ahochheiden,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D179052
2023-05-30 23:49:28 +00:00
Tooru Fujisawa
cb7c44703f Bug 1834673 - Part 1: Use UTF-8 in LCOV rewriter. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D179051
2023-05-30 23:49:28 +00:00
Mike Hommey
fd126d15a5 Bug 1834955 - Upgrade minimum supported Clang-cl version to 9. r=firefox-build-system-reviewers,sergesanspaille
We have less constraints on the minimum supported clang-cl version, and
it would unlock C++17 inline variables (which had a bug on Windows
targets in clang up-to 8.x).

Differential Revision: https://phabricator.services.mozilla.com/D179037
2023-05-29 20:31:08 +00:00
Mike Hommey
5e446e5a60 Bug 1835198 - Remove mozbuild.util.write_indented_repr. r=firefox-build-system-reviewers,nalexander
Its implementation in python3 is just wrapping pprint.pprint, and
there's only one use.

The python2 implementation is obviously dead code.

Differential Revision: https://phabricator.services.mozilla.com/D179179
2023-05-29 20:28:56 +00:00
Eemeli Aro
0997552230 Bug 1831872 - Migrate client.name2 string from sync.properties to Fluent. r=markh,fluent-reviewers,geckoview-reviewers,sync-reviewers,flod,m_kato
As this is the only string in `services/`, let's simplify by moving it under `toolkit/` and removing `services/sync/locales/` as empty.

On advice from markh, the ON_NEW_DEVICE_ID notification is delayed during device registration & updates until the update has been written to storage.

Differential Revision: https://phabricator.services.mozilla.com/D178805
2023-05-29 15:24:38 +00:00
Gabriele Svelto
64a8ebc1bf Bug 1834958 - Bump the minimum version of Rust to 1.66.0 r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D179070
2023-05-26 12:56:07 +00:00
Mike Hommey
463113cd50 Bug 1796380 - Remove -Qunused-arguments flag. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178734
2023-05-26 08:53:41 +00:00
Mark Banner
2f338da056 Bug 1834967 - Add HTML to the list of items to automatically format with Prettier in VS Code. r=firefox-build-system-reviewers,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D179042
2023-05-25 16:34:51 +00:00
Mike Hommey
04d95a11e2 Bug 1833998 - Switch Firefox builds to macOS 13.3 SDK. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D178500
2023-05-25 09:48:54 +00:00
ahochheiden
483267f020 Bug 1833448 - Mention that the configure mercurial step also updates version-control-tools r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D178830
2023-05-24 01:44:50 +00:00
Heitor Neiva
de10bf9824 Bug 1774273 - Transition mac notarization to signingscript r=taskgraph-reviewers,bhearsum
Differential Revision: https://phabricator.services.mozilla.com/D176162
2023-05-23 17:31:37 +00:00
Eemeli Aro
4470f15b3c Bug 1793557 - Convert ExtensionsUI.jsm strings to Fluent. r=extension-reviewers,fluent-reviewers,flod,robwu
Differential Revision: https://phabricator.services.mozilla.com/D178236
2023-05-23 12:00:02 +00:00
Eemeli Aro
9b69167750 Bug 1793557 - Migrate add-on notification strings to Fluent. r=extension-reviewers,flod,robwu
The l10n migration shows a diff for `addon-downloading-and-verifying`,
`addon-confirm-install-message`, and `addon-confirm-install-unsigned-message`
due to the en-US source having `1` rather than `one` variants.
For `addon-confirm-install-some-unsigned-message`,
the en-US source has a single-variant plural selector for localization to new languages.

In addition to moving strings from `browser.properties` to the new `addonNotifications.ftl`,
there's some shuffling of strings to & from `browser.ftl` as well.
The intent is to collect the more rarely used strings out of files loaded during startup,
especially as many of the notification strings need to be formatted in a sync context.

For the most part, string keys are left roughly the same as they were in .properties.
With some guidance, some rationalisation might make sense as a part of this for the
rather wide selection of prefixes in this set:
- `addon-`
- `site-permission-install-`
- `webext-`
- `xpinstall-`

The `addon-install-started` and `addon-install-failed` notifications appear to need sync l10n formatting,
as using async format calls before their `PopupNotifications.show()` leads to test failures in
`toolkit/mozapps/extensions/test/xpinstall/browser_doorhanger_installs.js`.

Differential Revision: https://phabricator.services.mozilla.com/D178235
2023-05-23 12:00:01 +00:00
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
Eemeli Aro
2ae8dc3662 Bug 1812539 - Drop vendored pytoml as unused. r=glandium
As far as I've understood, compare-locales was the last user of this.

Depends on D178299

Differential Revision: https://phabricator.services.mozilla.com/D178300
2023-05-23 10:58:34 +00:00
Eemeli Aro
85f64eeb4a Bug 1812539 - Update to compare-locales 9.0.1, fluent.migrate 0.12.0, and fluent.syntax 0.19.0. r=flod,glandium
Differential Revision: https://phabricator.services.mozilla.com/D178299
2023-05-23 10:58:33 +00:00
Mike Hommey
c95c96ee73 Bug 1833958 - Upgrade minimum supported Clang version to 7. r=firefox-build-system-reviewers,sergesanspaille
Per
https://glandium.github.io/firefox-linux-compat-matrix/#scope=build&version=115&show_eol=false
this leaves out Ubuntu 16.04, which hasn't built a newer version of
Firefox since version 88.0, and SUSE SLE-12-SP4, which goes EOL next
month, so before 115 is released.

Differential Revision: https://phabricator.services.mozilla.com/D178485
2023-05-22 23:07:29 +00:00
James Teh
c5ad4ea790 Bug 1821963 part 1: Remove NSIS and MSIX pieces supporting the old accessibility architecture based on content process COM proxies. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D177961
2023-05-22 20:19:44 +00:00
Narcis Beleuzu
ed1139f199 Backed out 6 changesets (bug 1821963) for build bustages. CLOSED TREE
Backed out changeset a92c62e304f0 (bug 1821963)
Backed out changeset da6cba0b0dd4 (bug 1821963)
Backed out changeset 4ed7ca0eb04a (bug 1821963)
Backed out changeset f2fba0ef15d9 (bug 1821963)
Backed out changeset 706e46fc2688 (bug 1821963)
Backed out changeset 6de2b9548dc6 (bug 1821963)
2023-05-22 14:05:20 +03:00
James Teh
fb07ae800d Bug 1821963 part 1: Remove NSIS and MSIX pieces supporting the old accessibility architecture based on content process COM proxies. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D177961
2023-05-22 10:00:20 +00:00
Narcis Beleuzu
7e5789cdf8 Backed out 2 changesets (bug 1834172, bug 1827747) for breaking local artifacts . a=backout
Backed out changeset 0ceb457743b4 (bug 1834172)
Backed out changeset 7ad6a3ad9db7 (bug 1827747)
2023-05-22 12:42:00 +03:00