Commit Graph
91 Commits
Author SHA1 Message Date
Artem Manushenkov 3224270b77 Bug 1900314 - Bump babel and use its topLevelAwait in parser worker r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D262189
2025-09-16 15:39:57 +00:00
Alexandre Poirot 0c8222f03f Bug 1986466 - [devtools] Remove unused react/redux dependencies from the debugger. r=devtools-reviewers,jdescottes
These libraries are no longer manager by npm, but are in firefox repo.

Differential Revision: https://phabricator.services.mozilla.com/D263407
2025-09-04 09:47:58 +00:00
Alexandre Poirot 40f84e5062 Bug 1986466 - [devtools] Remove unused workerjs dependencies in the debugger. r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D263406
2025-09-04 09:47:56 +00:00
Artem Manushenkov 086a2d71ca Bug 1984661 - remove unused watch.js in debugger. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D262144
2025-08-28 20:40:35 +00:00
Alexandre Poirot 72cb55191b Bug 1949588 - [devtools] Allow running the leftover debugger jest tests without react. r=nchevobbe,devtools-reviewers
Node doesn't support ESM, so we have to drop enzyme and prevent loading any frontend module.
There is much more to be cleaned up, but let wait for getting rid of the tests entirely.

Differential Revision: https://phabricator.services.mozilla.com/D239056
2025-03-05 17:06:05 +00:00
Nicolas Chevobbe 902220872c Bug 1951341 - [devtools] Add Debugger support for scripts using import attributes. r=devtools-reviewers,ochameau.
We need to add the @babel/plugin-syntax-import-attributes plugin to make sure
the outline panel and inline previews are working when using import attributes.

Differential Revision: https://phabricator.services.mozilla.com/D240122
2025-03-04 12:44:51 +00:00
Sandor Molnar 5652fc6f92 Backed out changeset 2a5e9bdc7e8e (bug 1951341) for causing build bustages. CLOSED TREE 2025-03-03 15:04:50 +02:00
Nicolas Chevobbe a7bf0c79f2 Bug 1951341 - [devtools] Add Debugger support for scripts using import attributes. r=devtools-reviewers,ochameau.
We need to add the @babel/plugin-syntax-import-attributes plugin to make sure
the outline panel and inline previews are working when using import attributes.

Differential Revision: https://phabricator.services.mozilla.com/D240122
2025-03-03 12:35:07 +00:00
Logan Rosen 22709f7084 Bug 1947060 - Update Jest-related dependencies r=devtools-reviewers,frontend-codestyle-reviewers,ochameau
Update Jest-related dependencies to latest, while removing the unused jest-junit and jest-serializer-babel-ast dependencies. This involved updating the snapshots to match the new default format that Jest uses.

Differential Revision: https://phabricator.services.mozilla.com/D237509
2025-02-11 04:20:51 +00:00
Mark Banner d0718e3c69 Bug 1937739. r=frontend-codestyle-reviewers,perftest-reviewers,mossop,sparky
Differential Revision: https://phabricator.services.mozilla.com/D232598
2024-12-19 17:05:08 +00:00
Nicolas Chevobbe ef5434de87 Bug 1933139 - [devtools] Fix debugger preview tooltip on scripts with using keyword. r=devtools-reviewers,bomsy.
This adds the babel plugin supporting the explicit resource management API.

Differential Revision: https://phabricator.services.mozilla.com/D230084
2024-11-28 06:08:24 +00:00
Mark Banner ea1a09f547 Bug 1919709 - Move ESLint CI runners to use node from the toolchains rather than a separate install. r=glandium
This also adds prettier as an installed package for the devtools debugger code - some of the tests actually use it, and they were only passing because it was being side-installed by the builder using the ESLint node_modules bundles.

Differential Revision: https://phabricator.services.mozilla.com/D222956
2024-09-25 06:37:10 +00:00
Nicolas Chevobbe 9678f5caab Bug 1874363 - [devtools] Remove build-debugger source-editor mapping. r=devtools-reviewers,ochameau.
Also remove devtools/client/debugger/src/utils/editor/source-editor.js which wasn't
used an look like a relic of ancient times.

Differential Revision: https://phabricator.services.mozilla.com/D198409
2024-01-16 13:44:51 +00:00
Iulian Moraru 2f1bccab07 Backed out 13 changesets (bug 1874363) - for causing multiple dt failures. CLOSED TREE
Backed out changeset 29fc55efd0a5 (bug 1874363)
Backed out changeset 75661fc7c39b (bug 1874363)
Backed out changeset bb6ef39f1a62 (bug 1874363)
Backed out changeset dbcffa72a1b2 (bug 1874363)
Backed out changeset 032f8f8c8593 (bug 1874363)
Backed out changeset a200f242dbd5 (bug 1874363)
Backed out changeset 44576c82ccfa (bug 1874363)
Backed out changeset 1bfb07c0b1e7 (bug 1874363)
Backed out changeset 75de090b9eef (bug 1874363)
Backed out changeset 442317088795 (bug 1874363)
Backed out changeset 29bd30a54caa (bug 1874363)
Backed out changeset 08c95433ca18 (bug 1874363)
Backed out changeset 8da0a8d798b2 (bug 1874363)
2024-01-16 12:12:50 +02:00
Nicolas Chevobbe 8589243db4 Bug 1874363 - [devtools] Remove build-debugger source-editor mapping. r=devtools-reviewers,ochameau.
Also remove devtools/client/debugger/src/utils/editor/source-editor.js which wasn't
used an look like a relic of ancient times.

Differential Revision: https://phabricator.services.mozilla.com/D198409
2024-01-16 08:30:59 +00:00
Nicolas Chevobbe 29843b03b0 Bug 1826503 - [devtools] Properly vendor fuzzaldrin-plus. r=devtools-reviewers,sylvestre,ochameau.
The library is added in devtools/client/shared/vendor, like the other third-party
libraries we use in DevTools.

This was the latest file that justified the debugger-specific vendor machinery,
so we can clean that up now.

First, we can remove the vendor.js file.
With this, this means that bin/bundle.js now only bundles the workers, using rollup,
so we can remove webpack and its associated packages from package.json, as well
as the webpack.config.js.
Finally, we can stop handling debugger vendors in build-debugger.js

Differential Revision: https://phabricator.services.mozilla.com/D193916
2023-11-24 08:50:42 +00:00
Nicolas Chevobbe 1fb8a5cee0 Bug 1826505 - [devtools] Don't vendor react-aria-components anymore. r=devtools-reviewers,ochameau.
This is not used anymore, so we can drop it.
This was the only vendored item that was contributing
to vendor.css, so we can delete the file, and cleanup
our webpack config.

Differential Revision: https://phabricator.services.mozilla.com/D193915
2023-11-23 06:27:43 +00:00
Nicolas Chevobbe 89f42791e8 Bug 1826504 - [devtools] Remove react-transition-group/Transition from Debugger vendors.js. r=devtools-reviewers,ochameau.
The library was only used to make the quick search panel
and the shortcut modal to show with a slide-in animation.
This can be replaced with a simple CSS animation instead.
I'm taking this as an opportunity to cleanup a few things
that were unecessary or not ideal in the CSS file.

Differential Revision: https://phabricator.services.mozilla.com/D192266
2023-11-03 10:00:06 +00:00
Alexandre Poirot f4b3c49337 Bug 1859243 - [devtools] Bump babel versions used by the parser worker. r=devtools-reviewers,bomsy
Also removing "buffer", which looks unused.

Differential Revision: https://phabricator.services.mozilla.com/D191052
2023-10-23 22:37:55 +00:00
Hubert Boma Manilla a6174b08c7 Bug 1724562 - [devtools] Move parse-script-tags module to the parser utils file r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D182665
2023-07-14 17:34:27 +00:00
Nicolas Chevobbe 1ace4e8d61 Bug 1837926 - [devtools] Support new RegExp v flag in parser worker. r=devtools-reviewers,ochameau.
Add plugin-proposal-unicode-sets-regex babel plugin and use it.
Add a jest test for it.

Differential Revision: https://phabricator.services.mozilla.com/D180676
2023-06-13 05:01:21 +00:00
Nicolas Chevobbe 2aad9f9607 Bug 1837926 - [devtools] Update babel/parser package. r=devtools-reviewers,ochameau.
This is needed to handle the new Regexp `v` flag.
I'm taking this as an opportunity to fix a couple issue in the bundle script.

Differential Revision: https://phabricator.services.mozilla.com/D180675
2023-06-13 05:01:21 +00:00
Mark Banner 0fadbc1ec4 Bug 1829618 - Enable Prettier on json files (automatic fixes). r=perftest-reviewers,webcompat-reviewers,extension-reviewers,andi,desktop-theme-reviewers,pip-reviewers,devtools-reviewers,sync-reviewers,mossop,denschub,dao,sparky,robwu,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D176336
2023-05-09 16:14:51 +00:00
Nicolas Chevobbe ced1b2515a Bug 1826502 - [devtools] Remove classnames package. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D174954
2023-04-13 06:37:02 +00:00
Stanca Serban 36143c631a Backed out 2 changesets (bug 1826502) for causing devtools failures. CLOSED TREE
Backed out changeset cf951535876b (bug 1826502)
Backed out changeset 18a87184af79 (bug 1826502)
2023-04-12 15:09:18 +03:00
Nicolas Chevobbe fdeebd4c2f Bug 1826502 - [devtools] Remove classnames package. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D174954
2023-04-12 10:23:45 +00:00
Nicolas Chevobbe 17b6d80865 Bug 1826508 - [devtools] Use rollup for bundling debugger workers. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D174723
2023-04-11 05:55:17 +00:00
Hubert Boma Manilla 20a1c00258 Bug 1818962 - [devtools] Refactor search modifiers actions and reducers r=ochameau,devtools-reviewers
This patch makes the SearchInput a connected component, This allows us cleanup
all the seperate actions and reducer logic and makes it easier to add new SearchInput
with modifers functionality.

Differential Revision: https://phabricator.services.mozilla.com/D171034
2023-03-18 18:59:47 +00:00
Nicolas Chevobbe 825b0f8767 Bug 1819939 - [devtools] Update source-map to 0.7.4. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D171476
2023-03-11 11:25:59 +00:00
Nicolas Chevobbe 2e67793dc6 Bug 1819937 - [devtools] Update acorn to 8.8.2. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D171474
2023-03-11 11:25:59 +00:00
Nicolas Chevobbe d907575b23 Bug 1804886 - [devtools] Move pretty-fast into debugger/src/workers/pretty-print. r=ochameau.
I disabled indivual eslint rules for the file and I'll
fix them in individual commits in this stack

Differential Revision: https://phabricator.services.mozilla.com/D166554
2023-01-20 06:46:54 +00:00
Nicolas Chevobbe 0986eeac73 Bug 1803360 - [devtools] Put pretty-fast library in tree. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D163560
2022-12-08 15:54:07 +00:00
Alexandre Poirot 10b4e53375 Bug 1794687 - [devtools] Remove immutable from debugger and remove seamless-immutable. r=bomsy
immutable in vendor is still used by the memory panel

Differential Revision: https://phabricator.services.mozilla.com/D159108
2022-10-17 12:23:20 +00:00
Alexandre Poirot f494578bc1 Bug 1762212 - [devtools] Migrate sources reducer to a Map (instead of Resource API). r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D142463
2022-04-06 07:17:40 +00:00
Nicolas Chevobbe 60f4db18ff Bug 1669968 - [devtools] Remove lodash from tree.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D136173
2022-01-21 12:48:22 +00:00
Nicolas Chevobbe 1b06b3d5b2 Bug 1750514 - [devtools] Remove lodash-move. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D136166
2022-01-20 07:21:09 +00:00
Nicolas Chevobbe 19938ac19e Bug 1737805 - [devtools] Remove lodash kebabCase usage. r=Honza.
The function usage wasn't providing any benefit, so
we can simply drop it.

Differential Revision: https://phabricator.services.mozilla.com/D129600
2021-11-04 12:42:42 +00:00
Nicolas Chevobbe eae96bda64 Bug 1730475 - [devtools] Handle sources with class static block. r=bomsy
The associated plugin is added to the babel config (and different locations where
we're using babel parsing).
The existing class for the getSymbols jest test is modified to include a few of
the latest class syntax (public and private properties, static block, ...).

Differential Revision: https://phabricator.services.mozilla.com/D126771
2021-09-30 13:53:54 +00:00
Nicolas Chevobbe ba8cbd24ae Bug 1730475 - [devtools] Update babel-core and associated packages. r=jdescottes.
In order to include the class statick block plugin, babel-core needs to be updated.
And as babel-core is updated, other packages relying on it also need to be updated.
One of them is jest, which requires a few changes in the test setting + a workaround
for CodeMirror test.
A few snapshots are updated as some methods changed their return values.
Finally, we're forcing the workerjs babel core dependency so it doesn't use a different
version. We should probably either update the dependency on jlast's repo, or directly
put the workerjs in tree, but we can do that on a dedicated bug.

Differential Revision: https://phabricator.services.mozilla.com/D126770
2021-09-30 13:53:53 +00:00
Nicolas Chevobbe 046e819315 Bug 1715985 - [devtools] Upgrade to pretty-fast 0.2.7. r=jdescottes.
This will unblock the migration to Node 12.

Differential Revision: https://phabricator.services.mozilla.com/D117537
2021-06-11 14:39:05 +00:00
Nicolas Chevobbe 1b40bb4b0c Bug 1710417 - [devtools] Update pretty-fast to 0.2.6. r=ladybenko.
This fixes an issue we had with pretty printing scripts
containing private fields.
A test case is added in browser_dbg-pretty-print.js to
ensure it stays this way.

Differential Revision: https://phabricator.services.mozilla.com/D114816
2021-05-12 09:40:15 +00:00
Nicolas Chevobbe 21ba0f7847 Bug 1709619 - [devtools] Handle private fields when retrieving script Symbols. r=bomsy.
Symbols are information on the structure of a given script (assignments, functions,
expressions, …)

This patch handles scripts using private fields and fixes a few things in the debugger:
- we get the full expression when hovering a private property access,
  a prerequisite to get the value of a private propery in the variable tooltip
  (which will be handled in Bug 1709567).
- private methods now show up in the outline view under their proper name, and
  not `anonymous`. `simplifyDisplayName` was fixed as well to not strip the `#`
  at the start of the method name.

Tests are added to ensure this works as expected.

A side-effect from modifying examples/simple1.js is that browser_dbg-outline-pretty.js
was broken since pretty-fast wasn't able to parse file with private fields syntax.
pretty-fast is updated to its latest version and the pretty-print worker is updated
so the test does not break anymore.

Depends on D114345

Differential Revision: https://phabricator.services.mozilla.com/D114459
2021-05-10 08:55:13 +00:00
Nicolas Chevobbe 51157f7ee8 Bug 1709544 - [devtools] Fix debugger preview tooltip on scripts with private fields. r=bomsy.
This patch adds 2 babel plugin so we can parse such scripts.

Differential Revision: https://phabricator.services.mozilla.com/D114345
2021-05-06 05:20:54 +00:00
Alexandre Poirot 96897ac5fb Bug 1690742 - [devtools] - Remove flow plugin and stop running flow on try r=nchevobbe,bomsy
Remove references to flow in build files.
This effectively stop stipping flow from debugger modules.
So any leftover would now start being kept in production file and do an error.

Differential Revision: https://phabricator.services.mozilla.com/D105330
2021-02-22 10:48:53 +00:00
Nicolas Chevobbe 6a2c5bff75 Bug 1674400 - [devtools] Update pretty-fast to 0.2.4. r=bomsy.
This updates the pretty-fast module to bring the commits
that were done there the 3 last years (date of the last
version being published).

Differential Revision: https://phabricator.services.mozilla.com/D96176
2020-11-10 12:15:13 +00:00
Nicolas Chevobbe 54cf3bd2c4 Bug 1673368 - [devtools] Remove unnecessary parts of debugger's webpack config. r=jdescottes
I inlined the two existing functions that were modifying the base config directly
back into the base webpack config, and then removed everything that wasn't hit
or used by the bundling script.
Thanks to this work, we're able to remove a few files that were previously only
used in Launchpad, or that are simple enough to be inlined into the webpack config.

Since postcss wasn't used, we can also remove the postcss.config.js file, as
well as some libraries from package.json.

Differential Revision: https://phabricator.services.mozilla.com/D96018
2020-11-06 14:49:16 +00:00
Nicolas Chevobbe 03b314ff8c Bug 1673368 - [devtools] Remove dependency on devtools-launchpad in webpack config. jdescottes. r=jdescottes
This patch is simply inlining what was in devtools-launchpad directly into the
debugger's webpack config.
In order for the bundling script to still work, we had to add the dependencies
that were used in devtools-launchpad.
For some reason, this shifted a lot of modules in the generated files (but files
have the same size before and after, so I guess nothing changed).

Next patch in the serie will cleanup this webpack config.

Differential Revision: https://phabricator.services.mozilla.com/D96017
2020-11-06 14:29:44 +00:00
Nicolas Chevobbe f8cb3f4a4d Bug 1669956 - [devtools] Fix debugger jest tests. r=jdescottes.
Edit babel config to be able to parse reps file

Differential Revision: https://phabricator.services.mozilla.com/D93395
2020-10-14 11:57:54 +00:00
Alexandre Poirot f0d809fe79 Bug 1669592 - [devtools] Cleanup debugger/package.json dependencies list r=jdescottes
This changeset focuses on dependencies, but surprisingly, it has an impact on bundles.
Looks like one dependency uses another revision.

Differential Revision: https://phabricator.services.mozilla.com/D92736
2020-10-07 15:51:36 +00:00
Alexandre Poirot 984e98faf9 Bug 1669592 - [devtools] Cleanup debugger/package.json. r=jdescottes
This changeset focus on devDependencies, but a similar work can probably be done on dependencies.
Many dependencies are justifies solely because of jest.
In order to run flow, we only need flow, and we need very few things for bin/bundle.
For me, the three things to keep working are:
* flow
* jest
* bin/bundle to rebuild vendors, reps, worker modules
The debugger frontend itself (src/ folder) is built without involving yarn/package.json.

Differential Revision: https://phabricator.services.mozilla.com/D92735
2020-10-07 15:51:05 +00:00