Граф коммитов

8701 Коммитов

Автор SHA1 Сообщение Дата
Julien Cristau be736fcf5f Bug 1851405 - update references to IndexSearch. r=glandium
Fixes mach bootstrap, among others.

Differential Revision: https://phabricator.services.mozilla.com/D187361
2023-09-05 07:39:58 +00:00
Mike Hommey 88b82d1ac2 Bug 1851078 - Simplify how the linker is chosen during configure. r=firefox-build-system-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D187247
2023-09-04 22:22:35 +00:00
Mike Hommey 2ced05ed85 Bug 1850900 - Be more consistent in how EXPAND_LIBS_LIST_STYLE is used. r=firefox-build-system-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D187173
2023-08-31 19:23:48 +00:00
Gabriel Bustamante 61adb24091 Bug 1850026 - Set dom.ipc.forkserver.enable to true in .deb repackage using a prefs file r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D186831
2023-08-30 18:42:16 +00:00
Dana Keeler 101100dc72 Bug 1401466 - make the client auth certificate selection dialog tab modal r=jschanck,necko-reviewers,bolsson,kershaw,valentin
Previously, the client authentication certificate selection dialog could show
up unexpectedly. Because it was modal, it would prevent user interaction with
the browser. It could even get in a state where the dialog couldn't be
interacted with, and neither could anything else, so the entire browser would
be locked and the user would have to quit and restart.

This patch associates a top-level outer content window ID (called "browserId"
in networking code) with each NSSSocketControl. When a peer asks for a client
authentication certificate, the NSSSocketControl can use the ID to find the
relevant tab and open a tab-modal dialog, which allows other browser UI to be
interacted with.

Some loads cannot be associated with browser tabs, and so the implementation
falls back to opening a window-modal dialog on the most recently active window.
This is still better than the previous implementation, since the dialog is
connected to a window rather than being its own separate dialog.

Differential Revision: https://phabricator.services.mozilla.com/D183775
2023-08-30 03:05:35 +00:00
Cosmin Sabou 29d8a2cb52 Backed out changeset 16c71fac6426 (bug 1401466) for causing SocketControl related fuzzing build bustages. CLOSED TREE 2023-08-30 00:37:21 +03:00
Dana Keeler 8ee5ec3bbb Bug 1401466 - make the client auth certificate selection dialog tab modal r=jschanck,necko-reviewers,bolsson,kershaw,valentin
Previously, the client authentication certificate selection dialog could show
up unexpectedly. Because it was modal, it would prevent user interaction with
the browser. It could even get in a state where the dialog couldn't be
interacted with, and neither could anything else, so the entire browser would
be locked and the user would have to quit and restart.

This patch associates a top-level outer content window ID (called "browserId"
in networking code) with each NSSSocketControl. When a peer asks for a client
authentication certificate, the NSSSocketControl can use the ID to find the
relevant tab and open a tab-modal dialog, which allows other browser UI to be
interacted with.

Some loads cannot be associated with browser tabs, and so the implementation
falls back to opening a window-modal dialog on the most recently active window.
This is still better than the previous implementation, since the dialog is
connected to a window rather than being its own separate dialog.

Differential Revision: https://phabricator.services.mozilla.com/D183775
2023-08-29 20:47:45 +00:00
ganna 289cf1ae78 Bug 1845148 - Use moz-message-bar for global warnings in about:addons. r=hjones,fluent-reviewers,extension-reviewers,flod,rpl
Differential Revision: https://phabricator.services.mozilla.com/D186380
2023-08-29 19:28:22 +00:00
ganna 61e4901504 Bug 1845123 - Use moz-message-bar to show extension shortcut warnings in about:addons. r=tgiles,fluent-reviewers,extension-reviewers,flod,rpl
Differential Revision: https://phabricator.services.mozilla.com/D186173
2023-08-29 19:28:22 +00:00
ganna 2bdc807ff5 Bug 1845120 - Part 1: Use moz-message-bar for abuse report messages in about:addons. r=tgiles,fluent-reviewers,extension-reviewers,flod,rpl
Differential Revision: https://phabricator.services.mozilla.com/D185850
2023-08-29 19:28:22 +00:00
ganna d8f0b627c8 Bug 1845113 - Use moz-message-bar for the recommended extensions message in about:addons. r=hjones,fluent-reviewers,extension-reviewers,desktop-theme-reviewers,flod,dao,rpl
Differential Revision: https://phabricator.services.mozilla.com/D185616
2023-08-29 19:28:21 +00:00
ganna b604e30cc2 Bug 1845110 - Use moz-message-bar to replace the postponed update message in about:addons. r=tgiles,fluent-reviewers,extension-reviewers,flod,rpl
Differential Revision: https://phabricator.services.mozilla.com/D185470
2023-08-29 19:28:21 +00:00
ganna 515d63a3f9 Bug 1845109 - Use moz-message-bar to replace the addon-card-message in about:addons. r=tgiles,fluent-reviewers,flod,rpl
Differential Revision: https://phabricator.services.mozilla.com/D185382
2023-08-29 19:28:21 +00:00
Mike Hommey 4bcef93926 Bug 1849322 - Add checks to ensure people don't land things that make `./mach vendor rust` non-idempotent. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D186529
2023-08-23 18:04:05 +00:00
Vinny Diehl 30d47ab8f9 Bug 1848308 - Properly quote args in run_process logs r=firefox-build-system-reviewers,ahochheiden,glandium
Differential Revision: https://phabricator.services.mozilla.com/D185992
2023-08-18 19:29:19 +00:00
Rob Lemley 1bf022ff12 Bug 1848262 - Set appdir from mozharness config when processing coverage files. r=jmaher
LCovFileRewriter uses "dist/bin/browser/" for the "appdir" parameter when no value
is passed. That's correct for Firefox, but Thunderbird needs to set appdir to
"dist/bin/".
In comm-central, "appdir" will be set in the Thunderbird mozharness unittest
config file so that appdir will be set appropriately. This allows for other
products to use code-coverage in the future as well.

Drive-by fix adds a \n when logging removed records for readability.

Differential Revision: https://phabricator.services.mozilla.com/D186459
2023-08-17 14:44:06 +00:00
Kagami Sascha Rosylight 5dc325c4e3 Bug 1846335 - Use f-string for exit code exception r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D186218
2023-08-17 11:18:23 +00:00
Tom Marble 3b701778f9 Bug 1847593 - convert .ini manifests to .toml: batch 2 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D185864
2023-08-14 19:55:09 +00:00
Tooru Fujisawa cfc88c67cd Bug 1847898 - Part 2: Merge process_regular and process_individual implementation. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D185868
2023-08-10 21:50:42 +00:00
Tooru Fujisawa 5f9ce53fe2 Bug 1847898 - Part 1: Move individiual update's fetch step into separate function. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D185792
2023-08-10 21:50:42 +00:00
Mike Hommey 4027128b33 Bug 1845498 - Use a response file with ar/llvm-lib when possible. r=firefox-build-system-reviewers,ahochheiden
We've apparently hit a threshold in non-unified builds where there are
too many files on the command line when creating the js_static library
on Windows. The way around that is to do something similar to shared
library linking, using a response file (shared library linking has more
possibilities, but it's a different story). Unfortunately, not all
static library creation tools are equal, and while llvm-lib, GNU ar and
llvm-ar support response files, BSD ar and probably others (e.g. the one
on Solaris?) don't, so we have to try and detect whether that works.

Differential Revision: https://phabricator.services.mozilla.com/D185419
2023-08-10 21:47:08 +00:00
Norisz Fay 26c741c830 Backed out 3 changesets (bug 1845109, bug 1845113, bug 1845110) for causing bc failures on browser_html_scroll_restoration.js CLOSED TREE
Backed out changeset 87bf8758b922 (bug 1845113)
Backed out changeset 0a70c42c7d57 (bug 1845110)
Backed out changeset 0e9d4a136f5d (bug 1845109)
2023-08-11 00:03:12 +03:00
ganna 1215b97635 Bug 1845113 - Use moz-message-bar for the recommended extensions message in about:addons. r=hjones,fluent-reviewers,extension-reviewers,desktop-theme-reviewers,flod,dao,rpl
Differential Revision: https://phabricator.services.mozilla.com/D185616
2023-08-10 17:35:33 +00:00
ganna 1895e4e549 Bug 1845110 - Use moz-message-bar to replace the postponed update message in about:addons. r=tgiles,fluent-reviewers,extension-reviewers,flod,rpl
Differential Revision: https://phabricator.services.mozilla.com/D185470
2023-08-10 17:35:33 +00:00
ganna 49a8bb4199 Bug 1845109 - Use moz-message-bar to replace the addon-card-message in about:addons. r=tgiles,fluent-reviewers,flod,rpl
Differential Revision: https://phabricator.services.mozilla.com/D185382
2023-08-10 17:35:33 +00:00
Geoff Brown 58b8548796 Bug 1848046 - Correct typo in mach help for AAB install r=releng-reviewers,hneiva
Differential Revision: https://phabricator.services.mozilla.com/D185865
2023-08-10 13:04:37 +00:00
Mike Hommey 5aa77c98a8 Bug 1847196 - Fix regexp escapes in test_emitter.py. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D185422
2023-08-09 20:17:50 +00:00
Mike Hommey c67fb78742 Bug 1847196 - Remove python 2 compatibility code from mozbuild.frontend.reader. r=firefox-build-system-reviewers,ahochheiden
The starting point was a Deprecation warning about visit_Str. It turns
out the function used to have an enlightening comment before bug
1616920, which read:
  # String nodes we got from the AST parser are str, but we want
  # unicode literals everywhere, so transform them.

In other words, the sole purpose of that function was to make the
transformed code closer to python 3 even when running in python 2. It's
a no-op on python 3, and, well we don't support python 2 anymore. So the
method can just go away.

While here, it turned out that some of the code that was added in bug 1616920
can also be undone because we don't need python 2 compatibility anymore.
And while we're doing that, let's just remove the uses of six as well.

Differential Revision: https://phabricator.services.mozilla.com/D185421
2023-08-09 20:17:49 +00:00
Travis Long aa6cb926b7 Bug 1626969 - Include locale in Glean pings.r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185153
2023-08-07 11:02:56 +00:00
ganna a5744d7258 Bug 1844848 - Use moz-message-bar in about:plugins. r=tgiles,fluent-reviewers,desktop-theme-reviewers,flod,dao
Differential Revision: https://phabricator.services.mozilla.com/D184773
2023-08-07 09:23:10 +00:00
Cristina Horotan 29d764fc02 Backed out changeset 672918ecc3bc (bug 1626969) for causing mach failures on a CLOSED TREE 2023-08-04 22:09:05 +03:00
Travis Long de399e3600 Bug 1626969 - Include locale in Glean pings.r=chutten,supply-chain-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D185153
2023-08-04 18:41:55 +00:00
Eemeli Aro 64e437b578 Bug 1760047 - Migrate browser-siteProtections.js to Fluent. r=anti-tracking-reviewers,fluent-reviewers,flod,bvandersloot
The `PanelMultiView.showSubView()` method needed to be made a bit more robust
for titles set by DOM localization rather than directly.

The following messages are dropped during the migration, as they are unused:
- contentBlocking.trackersView.blocked.label
- contentBlocking.cookiesView.firstParty.empty.label
- contentBlocking.cookiesView.trackers.empty.label
- contentBlocking.cookiesView.thirdParty.empty.label
- contentBlocking.fingerprintersView.blocked.label
- contentBlocking.cryptominersView.blocked.label

Differential Revision: https://phabricator.services.mozilla.com/D178829
2023-08-04 15:50:49 +00:00
Rob Lemley 4a65b455c4 Bug 1844662 - [mach vendor] Warn if replace-in-file finds a match but no changes were made. r=tjr
If replace-in-file[-regex] doesn't make any changes it throws an Exception
thinking that no match was found. In some cases the replacement could be the
same as the matched text. In this case, warn but don't raise an exception.

Non-regex patterns are escaped with re.escape() to simplify the function a bit.

Differential Revision: https://phabricator.services.mozilla.com/D184165
2023-08-03 19:55:56 +00:00
Mike Hommey 4a05ff7242 Bug 1844484 - Override the symbol used by compilers in vtables for pure virtual methods. r=firefox-build-system-reviewers,ahochheiden
In bug 1839743, we made the build system prefer packed relative
relocations to elfhack when both the system libc and linker support
them. Unfortunately, while that covers most of the benefits from
elfhack, it doesn't cover bug 651892.

To cover it, we make every C++ executable contain its own copy of
the symbol, so that all relocations related to it become relative.

And because this is actually (slightly) beneficial on macos, and because
it's also an advantage to have our own abort called rather than the
system's, we apply the same to all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D184068
2023-08-02 06:12:51 +00:00
Brad Werth 945241d7f5 Bug 1845144 Part 1: Update build configs with minimum macOS 10.15 target, update docs. r=glandium
This changes the minimum macOS target from 10.12 to 10.15 in several build
scripts and in documentation that references the minimum version
requirement.

Differential Revision: https://phabricator.services.mozilla.com/D184432
2023-08-02 02:26:14 +00:00
Mike Hommey eb6bdd90e5 Bug 1835053 - Remove syn v1 from the workspace-hack. r=firefox-build-system-reviewers,ahochheiden
It's the last crate with a remaining dependency on syn v1. The
transition is over.

Differential Revision: https://phabricator.services.mozilla.com/D184999
2023-08-02 00:25:47 +00:00
ahochheiden f71b25f3ce Bug 1845833 - Add the ability to specify command dependencies for commands r=firefox-build-system-reviewers,glandium
This just forces other command modules to be loaded in addition to the
'base' command. We need this so that decorators needed by the 'base'
command that are in another command module are ran during initialization
(eg: `@SettingsProvider`).

I thought about centralizing the `@SettingsProvider` decorators into one
module and always loading it, but they can depend on the
'command_handlers' in `Registrar`, so the modules they're currently in
have to be loaded for them to execute, so there wasn't a way around
this.

Differential Revision: https://phabricator.services.mozilla.com/D184852
2023-08-01 19:59:25 +00:00
ahochheiden 26bb1c1636 Bug 1846065 - Exit `DetermineCommandVenvAction` early if unknown command so that it can be gracefully handled elsewhere r=firefox-build-system-reviewers,glandium
Differential Revision: https://phabricator.services.mozilla.com/D184851
2023-08-01 19:59:25 +00:00
Rob Lemley 053852ffd2 Bug 1844659 - [mach vendor] Use Github API to find new tags. r=tjr
The Github repos API can look up tags by tag name and provide the timestamp
as required.
In the case where the latest tag is unknown, there is a "tags" endpoint
that lists all known tags, latest first. Once the tag name is known, the
timestamp can be looked up as above.
This change means Github API calls are used when checking for updates and
it's no longer necessary to clone the entire repository to look for a new
version.

Differential Revision: https://phabricator.services.mozilla.com/D177333
2023-08-01 17:03:37 +00:00
Rob Lemley f5d6514783 Bug 1845751 - Use commit (push) date for tagged releases from Git repos. r=tjr
Fixes an inconsistency caused by bug 1844659. Github releases now use the API
to find the most recent tag rather than doing a full repo clone.
Other Git providers clone and use "git log" to find the tag.
Both methods use the commit (pushed) date. Previously the "git log" method used
the authored date, which could be much earlier.

Differential Revision: https://phabricator.services.mozilla.com/D184972
2023-08-01 15:26:00 +00:00
Noemi Erli 72a3108e1e Backed out changeset a2017655dd34 (bug 1844484) for causing failures in test_crash_purevirtual.js 2023-08-01 15:09:51 +03:00
Mike Hommey cf3f361146 Bug 1844484 - Override the symbol used by compilers in vtables for pure virtual methods. r=firefox-build-system-reviewers,ahochheiden
In bug 1839743, we made the build system prefer packed relative
relocations to elfhack when both the system libc and linker support
them. Unfortunately, while that covers most of the benefits from
elfhack, it doesn't cover bug 651892.

To cover it, we make every C++ executable contain its own copy of
the symbol, so that all relocations related to it become relative.

And because this is actually (slightly) beneficial on macos, and because
it's also an advantage to have our own abort called rather than the
system's, we apply the same to all platforms.

Differential Revision: https://phabricator.services.mozilla.com/D184068
2023-08-01 05:32:00 +00:00
ahochheiden d1b78cde03 Bug 1845272 - Set 'site' early before checking for a `sub_command` `site` r=ahal a=RyanVM
This will make it so that if there was a potential subcommand, but it
was not a real subcommand, the base `command`'s site is still passed
through and activated.

Differential Revision: https://phabricator.services.mozilla.com/D184837
2023-07-28 17:36:17 +00:00
Tom Marble b51988220c Bug 1779473 - Add TOML support to manifestparser r=jmaher,ahal
ManifestParser will read TOML files, if present, when use_toml=True
Added tomlkit as a third_party python package
Added poetry-core and tomlkit to pypi (separately as Bug 1845383, Bug 1844787)
Adds TOML test coverage
Adds tomlkit as a dependency of mozharness (in test_archive.py)
Added tomlkit to virtualenv_modules in testing/mozharness/configs/unittests
Removes dependency on six

testing/tools/mach_test_package_initialize.py
- Corrected SEARCH_PATHS

testing/mozharness/mozharness/mozilla/testing/per_test_base.py
- moved `from manifestparser import TestManifest` into function call
  to avoid harness inability to locate the internal artifact
- Removed linter warnings

testing/mozbase/manifestparser/manifestparser/manifestparser.py
- Removed linter warnings
- Updated logger usage pattern
- Simplifed _read logic, refactored get_fp_filename()
- Improve context for `include:` logging message
- Defer `import mozlog` until the point of use

testing/mozbase/manifestparser/manifestparser/toml.py
- Removed linter warnings
- Removed unused logger
- Improved readability of read_toml()

testing/mozbase/manifestparser/manifestparser/ini.py
- Removed linter warnings
- Removed unused logger

testing/mozbase/manifestparser/manifestparser/filters.py
- Removed linter warnings

testing/mozbase/manifestparser/tests/test_chunking.py
- Removed linter warnings

Bumped manifestparser version to 2.2.31

Differential Revision: https://phabricator.services.mozilla.com/D184020
2023-07-27 20:16:19 +00:00
ahochheiden 2ced19d68c Bug 1845272 - Activate the `common` site virtualenv when calling the `mozperftest/runner.py` script directly (outside of a mach command context) r=ahal
Since various dependencies were moved out of the `mach` site, activating just it is no longer sufficient. Activating the `common` site solves this problem, since it has everything that was moved out of the `mach` site.

Differential Revision: https://phabricator.services.mozilla.com/D184662
2023-07-27 16:39:35 +00:00
Tom Ritter 7f3e777220 Bug 1842647: More intelligently handle a file that matches both patterns. r=jewilde
Differential Revision: https://phabricator.services.mozilla.com/D183422
2023-07-27 14:46:49 +00:00
Harshit Sohaney b2e460c833 Bug 1827252 - updating aioquic version to 0.9.21. r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D184421
2023-07-27 14:05:48 +00:00
Joel Maher 92a9f1a8c5 Bug 1845616 - Remove stacktrace from tooltool warnings. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D184638
2023-07-27 11:40:18 +00:00
Jan-Erik Rediger 1c2fbc9d73 Bug 1840044 - Update to Glean 53.1.0, UniFFI 0.24.1 and latest application-services. r=TravisLong,nika,markh,supply-chain-reviewers
Update:
  - Glean to v53.1.0
  - UniFFI to v0.24.1
  - application-services to a recent nightly that uses the above
    versions

- Updated `rusqlite` in toolkit/library/rust/shared/Cargo.toml
- Updated `uniffi-bindgen-gecko-js` to work with the new UniFFI.  Also
  updated it's askama version.
- Vetted new cargo dependencies

Ran `mach uniffi generate` to regenerate the code.

Differential Revision: https://phabricator.services.mozilla.com/D181872
2023-07-26 15:34:27 +00:00