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

10035 Коммитов

Автор SHA1 Сообщение Дата
renovate[bot] 078e93eeac no bug - Update dependency colorama to v0.4.5 r=linter-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154874
2022-08-17 13:46:04 +00:00
Gerald Squelart 4326b92ea7 Bug 1784812 - Use common JSONWriteFuncs when writing to a string - r=canaltinova,media-playback-reviewers,alwu
Most users of JSONWriter want to fill a string, so instead of having all these
similar implementations, we now have central reusable implementations:
- JSONStringWriteFunc contains a string and writes to it.
- JSONStringRefWriteFunc references a string and writes to it. This is most
  useful when the string already exists somewhere, or needs to be returned from
  a function (so we avoid another conversion when returning).

Differential Revision: https://phabricator.services.mozilla.com/D154618
2022-08-17 07:07:54 +00:00
Gerald Squelart eb90b3b175 Bug 1784812 - JSONWriter may optionally not own its writer - r=canaltinova
mWriter is now a reference, and the ownership is optional through a separate
member variable that could stay null.
User can now choose to keep the JSONWriteFunc on their stack, which saves a
heap allocation, and makes it easier to access the concrete JSONWriteFunc
implementation directly (instead of through WriteFunc()).

Differential Revision: https://phabricator.services.mozilla.com/D154617
2022-08-17 07:07:53 +00:00
Iulian Moraru 859487ba6b Backed out 4 changesets (bug 1784812) for causing build bustages on DDMediaLogs. CLOSED TREE
Backed out changeset c9998c927079 (bug 1784812)
Backed out changeset d2568bc2f8a6 (bug 1784812)
Backed out changeset 9f01bf89c583 (bug 1784812)
Backed out changeset d8506496d8f2 (bug 1784812)
2022-08-17 05:48:36 +03:00
Gerald Squelart 253bb5dc48 Bug 1784812 - Use common JSONWriteFuncs when writing to a string - r=canaltinova,media-playback-reviewers,alwu
Most users of JSONWriter want to fill a string, so instead of having all these
similar implementations, we now have central reusable implementations:
- JSONStringWriteFunc contains a string and writes to it.
- JSONStringRefWriteFunc references a string and writes to it. This is most
  useful when the string already exists somewhere, or needs to be returned from
  a function (so we avoid another conversion when returning).

Depends on D154617

Differential Revision: https://phabricator.services.mozilla.com/D154618
2022-08-16 22:57:49 +00:00
Gerald Squelart 722fbce3cc Bug 1784812 - JSONWriter may optionally not own its writer - r=canaltinova
mWriter is now a reference, and the ownership is optional through a separate
member variable that could stay null.
User can now choose to keep the JSONWriteFunc on their stack, which saves a
heap allocation, and makes it easier to access the concrete JSONWriteFunc
implementation directly (instead of through WriteFunc()).

Depends on D154616

Differential Revision: https://phabricator.services.mozilla.com/D154617
2022-08-16 22:57:49 +00:00
Renovate Bot 84efbfcef4 no bug - Update dependency rstcheck to v3.5.0 r=linter-reviewers,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154070
2022-08-16 13:02:48 +00:00
Paul Zuehlcke 017ccb0be2 Bug 1783019 - Implement cookie banner handling components. r=timhuang,necko-reviewers,valentin
This patch adds the following components:
 - nsICookieBannerService: Main service singleton managing the rules and initiating other components.
   It's exposed via Services.cookieBanners and can be configured via the cookiebanners.* prefs.
   To enable it set "cookiebanners.service.mode" to 1 or 2 and restart the browser.
 - nsCookieInjector: Looks up rules and injects cookies for matching top level loads.
 - nsICookieBannerListService: Imports and updates the cookie banner rules.
 - nsICookieBannerRule: Rules for a given domain.
 - nsICookieRule: Part of nsICookieBannerRule. Holds cookie specific rules.

Depends on D153641

Differential Revision: https://phabricator.services.mozilla.com/D153642
2022-08-16 12:07:13 +00:00
Kershaw Chang 35d82ae8cc Bug 1783822 - Add node 'ws' library for xpcshell test, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D154097
2022-08-16 07:39:34 +00:00
Sylvestre Ledru 4def815e85 Bug 1784857 - be consistent in the mccabe version r=linter-reviewers,andi
Depends on D154642

Differential Revision: https://phabricator.services.mozilla.com/D154643
2022-08-15 20:09:06 +00:00
Sylvestre Ledru a516a4f498 Bug 1784857 - Update to flake8 5.0.4 r=linter-reviewers,ahal
One of the argument has been renamed here:
8d3afe40e1

Depends on D154641

Differential Revision: https://phabricator.services.mozilla.com/D154642
2022-08-15 20:09:06 +00:00
Mark Banner cd24cf259e Bug 1784699 - Turn off the ESLint browser environment for xpcshell-tests for better represetation of the globals actually available. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D154606
2022-08-15 16:50:33 +00:00
Mark Banner 732ec28d02 Bug 1784699 - Add WebAssembly to the ESLint list of privileged globals. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D154605
2022-08-15 16:50:32 +00:00
Mark Banner 445161e7d6 Bug 1784699 - Move the ESLint Intl definition across to the privileged environment as it fits better there. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D154604
2022-08-15 16:50:32 +00:00
Mark Banner 0bbc4182e5 Bug 1784699 - Add some more globals to ESLint xpcshell environment. r=arai,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D154603
2022-08-15 16:50:31 +00:00
Mark Banner 98ec3f4fa1 Bug 1784699 - Add Readable/WriteableStream related globals to the list of privileged globals for ESLint. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D154602
2022-08-15 16:50:31 +00:00
Cosmin Sabou 8dd2842ffe Bug 1783416 - Skip test_basic.js on coverage builds due to permafailure. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154504
2022-08-12 12:23:03 +00:00
André Bargull 60863b7187 Bug 1783404: Support --fix option when eslint-plugin-spidermonkey-js is used. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D153843
2022-08-12 06:10:55 +00:00
Andrew Halberstadt 523889d2a7 Bug 1780278 - Update vendored taskgraph to 2.0.0, r=releng-reviewers,hneiva
Differential Revision: https://phabricator.services.mozilla.com/D153644
2022-08-09 19:22:11 +00:00
Kagami Sascha Rosylight 16ea24f6cc Bug 1769290 - Part 26: Emit errors from JSHandleRootedTypedefChecker r=andi,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D151842
2022-08-09 14:13:30 +00:00
Iulian Moraru 480242bffe Backed out changeset aac498e445a2 (bug 1782696) for causing py3 mozlint failures. CLOSED TREE 2022-08-09 14:40:44 +03:00
renovate[bot] 8c730122d1 Bug 1782696 - Update dependency pylint to v2.14.5 r=linter-reviewers,andi DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D153955
2022-08-09 09:18:00 +00:00
Gerald Squelart 6cd5fee5d2 Bug 1571089 - Remove the "leaf" profiler feature - r=canaltinova
We currently support stack walking everywhere, and when it fails, we fall back
to leaf stacks. The leaf option is a bit confusing in how it works, and doesn't
provide much value.

Differential Revision: https://phabricator.services.mozilla.com/D153695
2022-08-08 12:29:43 +00:00
Butkovits Atila 1a455850f9 Backed out changeset 523ef50a4e16 (bug 1571089) for causing xpcshell failures at test_ext_geckoProfiler_schema.js. CLOSED TREE 2022-08-08 13:21:54 +03:00
Gerald Squelart 24f16538a9 Bug 1571089 - Remove the "leaf" profiler feature - r=canaltinova
We currently support stack walking everywhere, and when it fails, we fall back
to leaf stacks. The leaf option is a bit confusing in how it works, and doesn't
provide much value.

Differential Revision: https://phabricator.services.mozilla.com/D153695
2022-08-08 08:43:43 +00:00
Christian Holler 401cd59012 Bug 1782502 - Fix incorrect log message when fuzzing with Nyx. r=truber
Differential Revision: https://phabricator.services.mozilla.com/D153346
2022-08-06 08:29:27 +00:00
Christian Holler 385aa3a622 Bug 1782507 - Pin IPC fuzzing to new actor / last port after constructor. r=truber
Depends on D153344

Differential Revision: https://phabricator.services.mozilla.com/D153345
2022-08-05 17:23:00 +00:00
André Bargull 96daf134a0 Bug 1782491 - Part 1: Add self-hosted code environment plugin. r=tcampbell
Adds a simple ESLint plugin for custom environments.

The plugin has a single exported value named `globals`, which is an object with
keys for all globally available self-hosted identifiers. All self-hosted values
are read-only, so we set all properties of `globals` to `"readonly"`.

BytecodeEmitter special identifiers are added to the `.eslintrc.js` file,
because that keeps them closer to the SpiderMonkey source tree when compared
to "tools/lint/eslint/eslint-plugin-spidermonkey-js".

Also see:
- tools/lint/eslint/eslint-plugin-mozilla/lib/environments/
- https://eslint.org/docs/latest/user-guide/configuring/language-options

Differential Revision: https://phabricator.services.mozilla.com/D153337
2022-08-05 09:58:58 +00:00
Norisz Fay 8e2e05ea96 Merge autoland to central a=merge 2022-08-05 12:27:30 +03:00
Narcis Beleuzu 6acdefa49c Backed out 2 changesets (bug 1780278) for breaking manual action tasks to add or backfill new tasks. a=backout DONTBUILD
Backed out changeset 609afc0ae2f6 (bug 1780278)
Backed out changeset 77a4bc82a9c0 (bug 1780278)
2022-08-05 12:23:27 +03:00
Barret Rennie 069a57c16d Bug 1772925 - Port osfile.jsm to IOUtils in tools/code-coverage/ r=marco
Differential Revision: https://phabricator.services.mozilla.com/D153701
2022-08-04 20:02:54 +00:00
André Bargull 511c96f0dc Bug 1782273 - Part 30: Enable prettier for selfhosted code. r=tcampbell,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D153263
2022-08-04 17:13:03 +00:00
Gerald Squelart f91d94a4c9 Bug 1777431 - Use the same default constants in both profilers - r=florian
The BASE_PROFILER_DEFAULT_...ENTRIES constants in BaseProfiler.h were smaller
than those in ProfilerControl.h, leading to a shorter profiling range in the
parent process!
Now these constants and some other shared ones are only defined in
BaseProfiler.h, and reused in ProfilerControl.h.

PROFILER_DEFAULT_DURATION was moved to where it's first used, and should one
day disappear (see bug 1632365).

Differential Revision: https://phabricator.services.mozilla.com/D153669
2022-08-04 13:59:50 +00:00
Jeff Muizelaar 353c96749e Bug 1783020 - Record WebRender display list building time in PerfStats. r=bas
This repurposes the unused LayerBuilding stat.

Differential Revision: https://phabricator.services.mozilla.com/D153631
2022-08-03 22:40:47 +00:00
Andrew Halberstadt ff1c394678 Bug 1780278 - Update vendored taskgraph to 2.0.0, r=releng-reviewers,hneiva
Differential Revision: https://phabricator.services.mozilla.com/D153644
2022-08-03 21:21:57 +00:00
Ben Dean-Kawamura e965ed0056 Bug 1766045 - Adding mach command to generate UniFFI files r=glandium
Added `mach uniffi generate` which executes `uniffi-bindgen-gecko-js` to
generate UniFFI bindings. It's unfortunate that we need to check these
files in, but I couldn't figure out a way to auto-generate them as part
of the build process.

Adding `#include "nsIContent.h"` to dom/base/nsINodeList.h.  I think
that should have been present before, but things built okay because of
the way things got combined in the uniffied .cpp files. Adding these new
webIDL files bumped `NodeListBinding.cpp` to a new uniffied .cpp file
which caused the build to fail.

Differential Revision: https://phabricator.services.mozilla.com/D144468
2022-08-03 18:59:36 +00:00
Ben Dean-Kawamura 1cf71b7095 Bug 1766045 - Initial work for UniFFI JS bindings r=nika
Generate the C++ and JS code to handle UniFFI bindings.  The WebIDL code
is completely static and doesn't need to be generated.

There's support for both synchronus and async functions, but we haven't
decided the how we want this to be configured.  In practice, almost all
functions will need to be async, so for now we're just forcing all
functions to be.

The `uniffi-bindgen-gecko-js` crate builds the binary that generates the
bindings.  This binary needs to be fed a list of UDL files, the path of
the .cpp file to generate, and the directory to generate .jsm files in
(and also all of those arguments again, but for the test fixtures).
This is quiet a horrible UI, but it's going to be wrapped in a mach
command.

The `uniffi-js` directory contains shared C++ code for
`uniffi-bindgen-gecko-js`.  As much as possible we tried to put the
functionality here and have the generated code simply forward function
calls here.

Still Todo:
  - CallbackInterfaces
  - Custom and external types
  - Datetime and TimeInterval

Differential Revision: https://phabricator.services.mozilla.com/D144472
2022-08-03 18:59:35 +00:00
Rob Lemley e6e7478175 Bug 1782749 - Add "Thunderbird" to Fluent linter's list of brand names. r=linter-reviewers,fluent-reviewers,sylvestre,flod
Differential Revision: https://phabricator.services.mozilla.com/D153530
2022-08-03 15:34:35 +00:00
Butkovits Atila a8ad39a288 Backed out 6 changesets (bug 1766045) for causing build bustages. CLOSED TREE
Backed out changeset 113593df6272 (bug 1766045)
Backed out changeset f137315bb6af (bug 1766045)
Backed out changeset d86ad195a9a0 (bug 1766045)
Backed out changeset e8bc2ec40cff (bug 1766045)
Backed out changeset 2d33e41ac507 (bug 1766045)
Backed out changeset 4d5874e16302 (bug 1766045)
2022-08-03 17:40:30 +03:00
Ben Dean-Kawamura 86a582c07a Bug 1766045 - Adding mach command to generate UniFFI files r=glandium
Added `mach uniffi generate` which executes `uniffi-bindgen-gecko-js` to
generate UniFFI bindings. It's unfortunate that we need to check these
files in, but I couldn't figure out a way to auto-generate them as part
of the build process.

Adding `#include "nsIContent.h"` to dom/base/nsINodeList.h.  I think
that should have been present before, but things built okay because of
the way things got combined in the uniffied .cpp files. Adding these new
webIDL files bumped `NodeListBinding.cpp` to a new uniffied .cpp file
which caused the build to fail.

Differential Revision: https://phabricator.services.mozilla.com/D144468
2022-08-03 13:48:28 +00:00
Ben Dean-Kawamura 703dbdfe3a Bug 1766045 - Initial work for UniFFI JS bindings r=nika
Generate the C++ and JS code to handle UniFFI bindings.  The WebIDL code
is completely static and doesn't need to be generated.

There's support for both synchronus and async functions, but we haven't
decided the how we want this to be configured.  In practice, almost all
functions will need to be async, so for now we're just forcing all
functions to be.

The `uniffi-bindgen-gecko-js` crate builds the binary that generates the
bindings.  This binary needs to be fed a list of UDL files, the path of
the .cpp file to generate, and the directory to generate .jsm files in
(and also all of those arguments again, but for the test fixtures).
This is quiet a horrible UI, but it's going to be wrapped in a mach
command.

The `uniffi-js` directory contains shared C++ code for
`uniffi-bindgen-gecko-js`.  As much as possible we tried to put the
functionality here and have the generated code simply forward function
calls here.

Still Todo:
  - CallbackInterfaces
  - Custom and external types
  - Datetime and TimeInterval

Differential Revision: https://phabricator.services.mozilla.com/D144472
2022-08-03 13:48:27 +00:00
Mark Banner 06e59b0866 Bug 1782008 - Move ESLint test paths definitions to a separate file. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D152734
2022-08-03 11:16:19 +00:00
Christian Holler 53b78333a2 Bug 1782505 - Observe destroyed actors in IPC fuzzing. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D153344
2022-08-02 22:06:28 +00:00
criss 04616ca52e Backed out 2 changesets (bug 1766045) for causing Bp-hybrid failures on UniFFIGeneratedScaffolding.cpp
Backed out changeset 5708672d0e83 (bug 1766045)
Backed out changeset cc77fd5ec7a8 (bug 1766045)
2022-08-03 00:01:58 +03:00
Ben Dean-Kawamura c1816bab45 Bug 1766045 - Initial work for UniFFI JS bindings r=nika
Generate the C++ and JS code to handle UniFFI bindings.  The WebIDL code
is completely static and doesn't need to be generated.

There's support for both synchronus and async functions, but we haven't
decided the how we want this to be configured.  In practice, almost all
functions will need to be async, so for now we're just forcing all
functions to be.

The `uniffi-bindgen-gecko-js` crate builds the binary that generates the
bindings.  This binary needs to be fed a list of UDL files, the path of
the .cpp file to generate, and the directory to generate .jsm files in
(and also all of those arguments again, but for the test fixtures).
This is quiet a horrible UI, but it's going to be wrapped in a mach
command.

The `uniffi-js` directory contains shared C++ code for
`uniffi-bindgen-gecko-js`.  As much as possible we tried to put the
functionality here and have the generated code simply forward function
calls here.

Still Todo:
  - CallbackInterfaces
  - Custom and external types
  - Datetime and TimeInterval

Differential Revision: https://phabricator.services.mozilla.com/D144472
2022-08-02 19:51:47 +00:00
Mark Banner 35f66cd5ae Bug 1780825 - Add ToastNotification to esmify's module list. r=arai
Depends on D152536

Differential Revision: https://phabricator.services.mozilla.com/D152537
2022-08-02 15:07:49 +00:00
Sylvestre Ledru 961144a29f Bug 1762038 - mozlint: Update to pylint v2.13.5 r=linter-reviewers,ahal
Depends on D142376

Differential Revision: https://phabricator.services.mozilla.com/D142171
2022-08-01 17:29:20 +00:00
André Bargull 440ca8257a Bug 1782190: Remove no longer used eslint definitions for js-shell module loader. r=jonco
The shell module loader was rewritten to C++ in bug 1637529.

"jsrtfuzzing-example.js" was changed to appease prettier, now that it's enabled.

Differential Revision: https://phabricator.services.mozilla.com/D153151
2022-07-29 09:44:27 +00:00
Barret Rennie 4ac8dcb4d4 Bug 1772943 - Port osfile.jsm usage to IOUtils in toolkit/mozapps/ r=Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D148967
2022-07-28 20:21:55 +00:00
Julien Cristau 4c730616cf Bug 1781202 - use the same configs for "mach try release" migrations as for actual merge automation r=releng-reviewers,aki DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D152733
2022-07-28 15:51:34 +00:00