Commit Graph

2696 Commits

Author SHA1 Message Date
Greg Mierzwinski
730d9fffd4 Bug 1932472 - [perfdocs] Prevent objdir paths from being checked. r=perftest-reviewers,fbilt DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D229683
2024-11-22 14:26:36 +00:00
Sylvestre Ledru
efa7e0b4a8 Bug 1932491 - mozlint/clippy: Improve the verbose mode r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D229697
2024-11-21 22:42:38 +00:00
Luca Greco
92430da106 Bug 1917848 - Show blocklist attention dot and blocklist messagebar message on new hard/soft blocked extensions (Extensions Button frontend changes). r=fluent-reviewers,willdurand,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D228677
2024-11-20 17:03:15 +00:00
Nika Layzell
573c3f5a9d Bug 1928734 - Part 2: Centralize handling of the IPC IO thread, r=ipc-reviewers,media-playback-reviewers,karlt,jld,handyman
Previously the handling for the IO thread was split between
BrowserProcessSubThread (a replication of the background thread infrastructure
used by Chromium during the IPC import, which is only used for the IO thread in
Gecko), and IOThreadChild (a wrapper around ChildThread, which was imported
from Chromium's source).

This meant that there was little code-sharing between the parent and child
processes, and that the lifecycle of the IO thread was perhaps less clear.

This refactors the code to centralize handling of these threads, and provide a
basic common interface. At the moment, actually hooking up async IO listeners
is still done using the Chromium interfaces.

Differential Revision: https://phabricator.services.mozilla.com/D227739
2024-11-19 18:34:02 +00:00
Mark Banner
b52795cbd6 Bug 1931575 - Run the test-manifest-toml linter on CI. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D229167
2024-11-16 15:37:18 +00:00
Sylvestre Ledru
a7b46bc19a Bug 1931525 - Upgrade to ruff 0.7.4 r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D229121
2024-11-15 21:56:01 +00:00
Sylvestre Ledru
e2db40e640 Bug 1835655 - mozlint/ruff: don't fails when -n is passed r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D228610
2024-11-12 22:07:44 +00:00
Sylvestre Ledru
3d33bd0fc2 Bug 1930335 - ruff: upgrade ruff to v0.7.3 r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D228539
2024-11-12 21:41:21 +00:00
Sylvestre Ledru
3143e4bf96 Bug 1930704 - doc: update to mermaid 1.0.0 r=firefox-source-docs-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D228707
2024-11-12 21:33:21 +00:00
Sylvestre Ledru
9c8691c55a Bug 1918098 - ruff: also run --fix for warnings r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D223913
2024-11-12 16:35:38 +00:00
Mark Banner
3eaa7986e1 Bug 1929531 - Change the ESLint mozilla/reject-addtask-only rule to highlight only the .only() section. r=frontend-codestyle-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D228170
2024-11-12 14:32:33 +00:00
Valentin Gosu
c795423fa2 Bug 1929377 - Add warning to about:neterror on OSX to check Local Network permissions r=necko-reviewers,fluent-reviewers,frontend-codestyle-reviewers,kershaw,flod
Mac OS Sequoia added a Local Network permission. It's very easy for users
to accidentally dismiss this vague prompt and then be confused when trying
to load a local web page.

This patch adds a warning message to the error page on OSX instructing
users to check the permissions.

Differential Revision: https://phabricator.services.mozilla.com/D228576
2024-11-12 10:56:21 +00:00
Alex Franchuk
98db67deb3 Bug 1929963 - Exclude generated database schema files from file-whitespace lints r=Roger
Differential Revision: https://phabricator.services.mozilla.com/D228480
2024-11-08 21:08:55 +00:00
Aaditya Dhingra
63d043faa9 Bug 1926814 - Generate a report for ktlintFormat and allow linters to be run from other subdirectories. r=nalexander,android-reviewers,ohall
Generate and read ktlintFormat report instead of ktlint when running `./mach lint -l android-{fenix|focus|ac} --fix}` to accurately report the existing errors/warnings

Also fixes the issue where running AC linter from fenix directory would immediately output ✖ 0 problems (0 errors, 0 warnings, 0 fixed) without running the linter but the linter would run normally if run from root folder or AC subdirectory

Differential Revision: https://phabricator.services.mozilla.com/D226850
2024-11-08 16:49:33 +00:00
Greg Mierzwinski
74b438f3d4 Bug 1928135 - Output suite-level description missing error on all changed files. r=perftest-reviewers,fbilt DONTBUILD
This patch fixes an issue where the suite-level description error wasn't being output. Instead of using the manifest from the yaml for this error, we'll output the failure to all changed files. Some additional changes are made for mozperftest to handle tests with periods in their names.

Differential Revision: https://phabricator.services.mozilla.com/D227378
2024-11-07 12:17:51 +00:00
Andrew Halberstadt
09d19b515b Bug 1928709 - Remove 'cram' test harness from the tree, r=jmaher,mach-reviewers,ahochheiden
This is no longer being used and the upstream project is unmaintained.

Differential Revision: https://phabricator.services.mozilla.com/D227869
2024-11-06 19:03:16 +00:00
Sylvestre Ledru
113b09cdd5 Bug 1918098 - ruff: upgrade ruff to v0.6.4 r=linter-reviewers,ahal
+ Rename --format to the new option + include it in the verbose command

Differential Revision: https://phabricator.services.mozilla.com/D221875
2024-11-06 12:51:33 +00:00
Sylvestre Ledru
d35ba16a18 Bug 1918098 - ruff: fix the errors identified by 0.6.4 r=linter-reviewers,taskgraph-reviewers,releng-reviewers,webdriver-reviewers,perftest-reviewers,migration-reviewers,jmaher,whimboo,sparky,xpcom-reviewers,beth,ahal,mconley
Differential Revision: https://phabricator.services.mozilla.com/D221874
2024-11-06 12:51:32 +00:00
Mark Banner
d55f746762 Bug 1928625 - Remove ESLint rule mozilla/consistent-if-bracing as curly already enforces more than it. r=frontend-codestyle-reviewers,mossop
Differential Revision: https://phabricator.services.mozilla.com/D227658
2024-11-04 13:48:54 +00:00
Mark Banner
28154dc55a Bug 1928625 - Improve performance of loading globals for ESLint. r=frontend-codestyle-reviewers,mossop
There's no need to get the AST source if we are not in the global scope.

Differential Revision: https://phabricator.services.mozilla.com/D227657
2024-11-04 13:48:54 +00:00
Sylvestre Ledru
4d9d8dc7dd Bug 1918098 - ruff: --verbose --fix should show the fix command too r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D223912
2024-11-03 20:47:14 +00:00
Sylvestre Ledru
cd289bcb06 Bug 1921433 - reformat with black 24.8.0 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,taskgraph-reviewers,releng-reviewers,dom-storage-reviewers,janv,jmaher,whimboo,afinder,ahal
Differential Revision: https://phabricator.services.mozilla.com/D223963
2024-11-03 20:28:59 +00:00
Sylvestre Ledru
1e17a3910f Bug 1921433 - Update to black 24.8.0 r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D223962
2024-11-03 20:28:59 +00:00
Mark Banner
cbb55a4a55 Bug 1927798 - Re-enable the curly rule for ESLint. r=frontend-codestyle-reviewers,mossop
This was accidentally disabled in bug 1920531 with the re-organisation of how eslint-plugin-mozilla worked.
The rule needs to be (re)enabled after eslint-config-prettier is applied, as eslint-config-prettier turns it off by default.

Differential Revision: https://phabricator.services.mozilla.com/D227621
2024-11-01 14:15:01 +00:00
Beth Rennie
91c7baf502 Bug 1922040 - Remove fxrecord from the tree r=sparky,perftest-reviewers,taskgraph-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D227389
2024-10-31 18:30:53 +00:00
Mark Banner
cee5571f91 Bug 1881696 - Make the eslint-plugin-mozilla recommended configuration work with the ESLint flat config. r=frontend-codestyle-reviewers,mossop
This provides additional "flat/...." configurations which work with the flat config of ESLint. The changes in recommended.js make it easier to handle the two different types of configuration. The changes in index.js are to ensure that the resultant configurations are correct for legacy or flat configs. The index.js changes also inject the plugin object back into itself, as required by ESLint.

Once we have switched mozilla-central to flat configuration, we can drop support for the legacy config.

Differential Revision: https://phabricator.services.mozilla.com/D225705
2024-10-18 09:21:27 +00:00
Mark Banner
072008e5f7 Bug 1881696 - Rework the ESLint environment so that eslint-plugin-mozilla is not enforcing the environment everywhere. r=frontend-codestyle-reviewers,Gijs
This makes it easier for subscribers of eslint-plugin-mozilla to use it more generally as a set of recommended
rules. The only environment definitions are for mozilla-specific file types, where we should be safe to specify
them.

Differential Revision: https://phabricator.services.mozilla.com/D225704
2024-10-18 09:21:27 +00:00
Greg Mierzwinski
114aecfb2a Bug 1924838 - [perfdocs] Check for skipped tests for mozperftest. r=perftest-reviewers,fbilt DONTBUILD
This patch fixes an issue where having `skip-if` defined in the test manifests would prevent perfdocs from finding the test even though it exists.

Differential Revision: https://phabricator.services.mozilla.com/D225696
2024-10-17 15:12:01 +00:00
Hanna Jones
7d802bf04c Bug 1921088 - Upgrade Stylelint and related libraries to the latest version r=Standard8,devtools-reviewers,omc-reviewers,home-newtab-reviewers,nchevobbe,thecount,desktop-theme-reviewers,dao,aminomancer
In addition to upgrding our Stylelint packages, this patch also introduces the @stylistic/stylelint-plugin to preserve a number of rules that were completely removed in v16. It also migrates the code for the custom plugin introduced in bug 1838298 to ES Modules.

Differential Revision: https://phabricator.services.mozilla.com/D224250
2024-10-15 19:39:46 +00:00
Dão Gottwald
3694fee4a9 Bug 1924532 - Move tabMediaIndicator tests to browser/components/tabbrowser/. r=tabbrowser-reviewers,frontend-codestyle-reviewers,dwalker,mossop
Differential Revision: https://phabricator.services.mozilla.com/D225516
2024-10-15 16:04:13 +00:00
Makoto Kato
ae5f3581ce Bug 1924039 - Run license lint for Kotlin source files. r=linter-reviewers,sylvestre,Standard8,ahal
Differential Revision: https://phabricator.services.mozilla.com/D225324
2024-10-15 01:28:22 +00:00
Dão Gottwald
1d3c8fc2a0 Bug 1924105 - Move tab tests from browser/base/ to browser/components/tabbrowser/. r=tabbrowser-reviewers,dwalker
Differential Revision: https://phabricator.services.mozilla.com/D225356
2024-10-14 14:22:00 +00:00
William Durand
d510f68c17 Bug 1923268 - Update soft/hard block strings. r=rpl,fluent-reviewers,android-reviewers,bolsson,delphine,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D225047
2024-10-14 10:00:26 +00:00
florin.bilt
1d1a1f4640 Bug 1881556 - Add documentation on the cpuTime metric to raptor documentation r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D223298
2024-10-11 09:52:43 +00:00
Bastian Gruber
b7941358f4 Bug 1923364 - Add topic guides for app-services, r=nanj,markh DONTBUILD
Bug 1923364 - cleanup extensions, r=nanj

Bug 1923364 - Adding tabs to lint, r=nanj

Bug 1923364 - Ignore tabs linting, r=nanj

Bug 1923364 - Restructure and combine rust components, r=nanj

Bug 1923364 - Replace rst with MyST markdown, r=nanj

Bug 1923364 - PR review fixes, r=nanj

Differential Revision: https://phabricator.services.mozilla.com/D224949
2024-10-09 23:24:17 +00:00
Andrew Osmond
f6f0434b71 Bug 1921554 - Generate gfx blocklist features/status/etc list to create downloadable blocklist bindings. r=bradwerth,jnicol
This patch turns the various nsIGfxInfo::FEATURE_* constants into macros
that can be included to generate C++ code at runtime. This has been done
to automatically generate the necessary bindings for the downloadable
blocklist. This way we will never miss adding the necessary
prerequisities as we have in the past.

Differential Revision: https://phabricator.services.mozilla.com/D224056
2024-10-05 15:10:32 +00:00
Mike Hommey
d832365263 Bug 1922437 - Rename nsIAndroid* classes to nsIGeckoView*. r=geckoview-reviewers,nika,frontend-codestyle-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D224429
2024-10-03 22:21:51 +00:00
Luca Greco
82ac083630 Bug 1917846 - Update about addons blocked and softblocked strings (message bar message and link action button strings). r=willdurand,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D222366
2024-10-02 17:20:10 +00:00
Luca Greco
dc4e37e2c1 Bug 1917845 - Block and show an install error on new soft-blocked addons versions installs. r=willdurand,fluent-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D222101
2024-10-02 17:20:09 +00:00
Sylvestre Ledru
b395da236f Bug 1920521 - Remove jprof from m-c r=jesup,zeid
Differential Revision: https://phabricator.services.mozilla.com/D223158
2024-10-01 14:13:43 +00:00
Hanna Jones
9e854657c9 Bug 1838298 - Custom Stylelint plugin to prevent color tokens from being used directly r=Standard8,frontend-codestyle-reviewers,desktop-theme-reviewers,dao
This patch lays the foundation for a Mozilla-specific Stylelint plugin that we can continue to expand on with new rules as needed. For the first rule I've implemented a simple check to ensure our color tokens are being used as intended.

Differential Revision: https://phabricator.services.mozilla.com/D223204
2024-09-27 14:58:41 +00:00
Florian Quèze
66306a3b3a Bug 1918702 - Migrate telemetry events to use Glean APIs for security.doh.neterror, security.ui.certerror and security.ui.tlserror, r=chutten,frontend-codestyle-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D223634
2024-09-27 11:48:58 +00:00
Florian Quèze
ce72f422e3 Bug 1918702 - Migrate telemetry events to use Glean APIs for security.ui.protections, r=chutten,frontend-codestyle-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D223616
2024-09-27 11:48:58 +00:00
Mark Banner
25045cc41e Bug 1920970 - Move ESLint node_modules bundles away from tooltool and into the toolchain. r=jcristau
Differential Revision: https://phabricator.services.mozilla.com/D223647
2024-09-26 10:55:31 +00:00
Mark Banner
fae021d5ee Bug 1920802 - Update node_modules related to ESLint as far as possible. r=frontend-codestyle-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D222622
2024-09-25 06:37:10 +00:00
Mark Banner
9e50226bf3 Bug 1920531 - Remove html, json and prettier plugin dependencies from eslint-plugin-mozilla. r=frontend-codestyle-reviewers,Gijs
Requiring these in eslint-plugin-mozilla seems a bit unnecessary:

* The html plugin is used as a parser and is only required if a project is parsing html.
* Similary, we use the recommended config for the JSON parser, and it only applies for JSON files.
* The prettier option is only required if a project wants to use prettier. Whilst I think we should have prettier for all Mozilla projects, I don't think we need to enforce/require it here.

Differential Revision: https://phabricator.services.mozilla.com/D222628
2024-09-23 17:46:18 +00:00
Mark Banner
d2c42a23fa Bug 1920532 - Remove unnecessary '../lib' path loading in requires in eslint-plugin-mozilla's index.js. r=frontend-codestyle-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D222623
2024-09-23 17:46:17 +00:00
Nico Burns
1ef2bef1f1 Bug 1918093: Inline derive_common crate into style_derive (r=emilio)
Signed-off-by: Nico Burns <nico@nicoburns.com>

Differential Revision: https://phabricator.services.mozilla.com/D221816
2024-09-19 13:06:54 +00:00
myeongjun
e187818d25 Bug 1826822 - Make tp6 the default for AWSY r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D220147
2024-09-18 12:12:53 +00:00
Ben Dean-Kawamura
fba8dd2c1e Bug 1910404 - UniFFI proc-macro support, r=lina,firefox-build-system-reviewers,glandium
Switched to library mode for generating bindings.

Updated our strategy for UniFFI components/fixtures.  There's now a
crate for components and a crate for fixtures.  These crates are a
dependency of gkrust-shared and also built as standalone libraries which
UniFFI uses to generate the bindings.

One upshot of this is that we no longer need the `crate_name` or
`udl_file` config values.  library-mode can figure out the udl paths
automatically.

Differential Revision: https://phabricator.services.mozilla.com/D221824
2024-09-16 15:18:07 +00:00