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

2036 Коммитов

Автор SHA1 Сообщение Дата
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 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 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
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
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
Tooru Fujisawa de340512f3 Bug 1779988 - Part 2: Add ESLint rule that rejects multiple `ChromeUtils.defineESModuleGetters` call on the same object. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152880
2022-07-28 00:54:20 +00:00
Ryan Hunt 5b07c7d827 Bug 1781425 - wasm: Remove baldrdash. r=jseward,supply-chain-reviewers
The baldrdash integration of Cranelift is agreed between SM and CL
to be the wrong shape. Our import of the code base is also old and
causes difficulties for us when upgrading some crates (see bug
1774829). We should remove it for now to unblock bug 1774829.

Differential Revision: https://phabricator.services.mozilla.com/D152806
2022-07-27 22:30:17 +00:00
Mark Banner 58566a1db9 Bug 1777268 - Support structuredClone in the system global by default. r=webcompat-reviewers,twisniewski,kmag
Differential Revision: https://phabricator.services.mozilla.com/D152196
2022-07-26 20:13:52 +00:00
Francesco Lodolo (:flod) 2d85581b2c Bug 1781010: Fluent linter, add checks for hard-coded brand names,r=gregtatum,linter-reviewers,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D152718
2022-07-26 19:48:08 +00:00
Tooru Fujisawa 5cda6987cf Bug 1780543 - Part 11: Update document for environment. r=Standard8
Depends on D152648

Differential Revision: https://phabricator.services.mozilla.com/D152649
2022-07-26 02:46:32 +00:00
Tooru Fujisawa 972452a602 Bug 1780543 - Part 10: Use SpecialPowers sandbox definition in import-content-task-globals.js. r=Standard8
Also update the list of variables.

Depends on D152647

Differential Revision: https://phabricator.services.mozilla.com/D152648
2022-07-26 02:46:32 +00:00
Tooru Fujisawa 92a8ee55fc Bug 1780543 - Part 9: Move SpecialPowers sandbox global definition into separate file. r=Standard8
Also define Components and Services, that's enabled by default on sandbox.

Depends on D152646

Differential Revision: https://phabricator.services.mozilla.com/D152647
2022-07-26 02:46:32 +00:00
Tooru Fujisawa 4723c60b2c Bug 1780543 - Part 7: Update frame-script and process-script environment. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152432
2022-07-26 02:46:31 +00:00
Tooru Fujisawa a032f53a63 Bug 1780543 - Part 5: Add mozilla/chrome-script environment. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152430
2022-07-26 02:46:30 +00:00
Tooru Fujisawa 9fa82cdffe Bug 1780543 - Part 4: Add mozilla/remote-page environment. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D152429
2022-07-26 02:46:30 +00:00
Tooru Fujisawa 4e35a2bf9c Bug 1780543 - Part 3: Add mozilla/process-script environment as alias to frame-script. r=Standard8,perftest-reviewers,webcompat-reviewers,necko-reviewers,twisniewski,sparky,dragana
Differential Revision: https://phabricator.services.mozilla.com/D152428
2022-07-26 02:46:29 +00:00
Norisz Fay bc693a67ca Backed out changeset c6db198ff02c (bug 1772943) for causing mochitest failures on browser_doorhanger_installs.js CLOSED TREE 2022-07-21 13:10:16 +03:00
Barret Rennie ccc656a53b Bug 1772943 - Port osfile.jsm usage to IOUtils in toolkit/mozapps/ r=Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D148967
2022-07-21 04:44:40 +00:00
andrej 94cf3a15d8 Bug 1778542 - Add components, owners and co-owners to firefox source docs. r=perftest-reviewers,sparky
What we are doing:
Adding a contact section in auto-generated performance testing docs so people know who to contact when they are having an issue with a given module/component

Differential Revision: https://phabricator.services.mozilla.com/D151400
2022-07-20 19:42:41 +00:00
Sylvestre Ledru 73d4a6ca57 no bug - Fix a few typo found by the next version of codespell r=marco
Differential Revision: https://phabricator.services.mozilla.com/D150321
2022-07-20 15:26:22 +00:00
Andrew Halberstadt 816f3eeaca Bug 1780087 - [docs] Implement a 'searchfox' role, r=firefox-source-docs-reviewers,sylvestre
See the docstring in this patch for usage examples.

Differential Revision: https://phabricator.services.mozilla.com/D152124
2022-07-19 15:41:07 +00:00
Mark Banner a869ce033b Bug 1779989 - Explicitly disallow ES modules in ESLint import-globals-from statements. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D152002
2022-07-19 05:57:15 +00:00
Mark Banner f724fd0ca0 Bug 1779987 - Stop excluding search files from the rejected-words linter. r=mcheang
Differential Revision: https://phabricator.services.mozilla.com/D151999
2022-07-19 05:57:15 +00:00
Gijs Kruitbosch 92d44f3713 Bug 1737043 - add a suggestion for 'example.com' in the network error page for 'example', r=mak,eemeli,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D129156
2022-07-19 03:27:18 +00:00
Mark Banner c973d7e4a7 Bug 1648286 - When linting, ignore all node_modules directories across the tree not only the top-level ones. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D152009
2022-07-18 20:47:12 +00:00
Iulian Moraru 5e7070f988 Backed out changeset 89d291a9ee9b (bug 1737043) for causing xpcshell failures on test_URIFixup_check_host.js. CLOSED TREE 2022-07-17 20:47:23 +03:00
Gijs Kruitbosch 393bdf2f46 Bug 1737043 - add a suggestion for 'example.com' in the network error page for 'example', r=mak,eemeli,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D129156
2022-07-17 16:48:44 +00:00
Zeid Zabaneh c800d1fef3 Bug 1737634: mots config file r=sheehan
This revision migrates all the content of the following modules:
- Desktop_Firefox
- Toolkit
- Core
- Testing

Up to the their state on Monday June 20th, 2022 in the old system.

The rst file was automatically generated by running `mots export`.

Differential Revision: https://phabricator.services.mozilla.com/D130508
2022-07-14 15:45:44 +00:00
Bogdan Szekely 8e55f13499 Backed out changeset e3ba86211812 (bug 1772943) for causing mochitest failures on browser_html_discover_view.js CLOSED TREE 2022-07-12 13:46:27 +03:00
Barret Rennie 6d73858beb Bug 1772943 - Port osfile.jsm usage to IOUtils in toolkit/mozapps/ r=Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D148967
2022-07-12 10:09:15 +00:00
Tooru Fujisawa 46b5c20706 Bug 1667455 - Part 15: Stop using Services.jsm in eslint testcase. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150904
2022-07-11 12:41:54 +00:00
Tooru Fujisawa badd55d158 Bug 1667455 - Part 2: Add Services to system globals in ESLint. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150891
2022-07-11 12:41:48 +00:00
Mark Banner 68920ac756 Bug 1762571 - Update node_modules bundles and package-lock.json files for new node versions. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D147175
2022-07-07 22:09:00 +00:00
Mark Banner 6cc792275f Bug 1777451 - Add a rule to prevent/recommend against using globalThis or window in non-system modules for lazy getters. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D151083
2022-07-06 08:35:59 +00:00
Tooru Fujisawa 4191f0cef6 Bug 1777637 - Part 3: Use plain object for lazy getter in browser/components/urlbar/. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D150934
2022-07-05 23:34:10 +00:00
Tooru Fujisawa 8cc73badc6 Bug 1776837 - Part 2: Reject defining lazy getter for module that is already loaded eagerly at top-level. r=mossop
Depends on D150935

Differential Revision: https://phabricator.services.mozilla.com/D150936
2022-07-05 01:01:35 +00:00
Iulian Moraru eaae7245b9 Backed out 3 changesets (bug 1762571) for causing xpcshell failures on test_trr_httpssvc_wrap.js. CLOSED TREE
Backed out changeset 9e6eb444acb4 (bug 1762571)
Backed out changeset f24051722cee (bug 1762571)
Backed out changeset 0ead2f6d0582 (bug 1762571)
2022-06-30 18:43:06 +03:00
Mark Banner f316a3e874 Bug 1762571 - Update node_modules bundles and package-lock.json files for new node versions. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D147175
2022-06-30 13:23:25 +00:00
Mark Banner f81acc0ab7 Bug 1646183 - Use ESLint rule reject-importGlobalProperties to reject all imports in system modules. r=arai,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D150354
2022-06-29 22:37:58 +00:00
Mark Banner 05e3f1ea83 Bug 1646183 - Extend ESLint rule reject-importGlobalProperties to also handle defineLazyGlobalGetters. r=arai,webdriver-reviewers,webcompat-reviewers,extension-reviewers,whimboo,twisniewski,kmag
Differential Revision: https://phabricator.services.mozilla.com/D150353
2022-06-29 22:37:57 +00:00
Tooru Fujisawa ffb985c814 Bug 1776828 - Reflect ESM lazy getter to the global. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D150452
2022-06-28 15:45:58 +00:00
Andrew Halberstadt 1bdbe6ed59 Bug 1766316 - [taskgraph] Merge 'util/schema.py' between the two taskgraphs, r=releng-reviewers,aki
Differential Revision: https://phabricator.services.mozilla.com/D150414
2022-06-28 13:12:21 +00:00
Kagami Sascha Rosylight 39d7ee6f91 Bug 1773740 - Part 3: Cover js files including ChromeUtils r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D148938
2022-06-27 20:31:33 +00:00
Kagami Sascha Rosylight e984382b9a Bug 1773740 - Part 2: Only handle identifiers pointing to environment globals r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D148937
2022-06-27 20:31:33 +00:00